Package com.google.minijoe.compiler.ast

Examples of com.google.minijoe.compiler.ast.DoStatement


    readToken(Token.KEYWORD_WHILE);
    readToken(Token.OPERATOR_OPENPAREN);
    expression = parseExpression(true);
    readToken(Token.OPERATOR_CLOSEPAREN);

    return new DoStatement(statement, expression);
  }
View Full Code Here


    super(name);
  }

  public void testDoStatement() throws CompilerException {
    assertParserOutput(
        new DoStatement(
            new ExpressionStatement(
                new Identifier("something")
            ),
            new BooleanLiteral(true)
        ),
        "do something; while (true);"
    );
    assertParserOutput(
        new DoStatement(
            new BlockStatement(
                new Statement[] {
                    new ExpressionStatement(
                        new Identifier("something")
                    )
View Full Code Here

TOP

Related Classes of com.google.minijoe.compiler.ast.DoStatement

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.