Package org.jnode.shell.bjorne

Examples of org.jnode.shell.bjorne.BjorneParser


    private static final boolean DEBUG = false;

    @Test
    public void testParser() throws ShellException {
        new BjorneParser(new BjorneTokenizer(""));
    }
View Full Code Here


                + "SimpleCommand{nodeType=1,words=[WORD{echo},WORD{false}]}}",
                doTest("if true ; then echo yes ; else echo false ; fi"));
    }

    private String doTest(String input) throws ShellException {
        BjorneParser p = new BjorneParser(new BjorneTokenizer(new StringReader(input), DEBUG));
        String res = p.parse().toString();
        if (DEBUG) {
            System.err.println(res);
        }
        return res;
    }
View Full Code Here

TOP

Related Classes of org.jnode.shell.bjorne.BjorneParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.