Package com.google.minijoe.compiler.ast

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


      readToken(Token.KEYWORD_THIS);
      return new ThisLiteral();

    } else if (nextToken == Token.KEYWORD_NULL) {
      readToken(Token.KEYWORD_NULL);
      return new NullLiteral();

    } else if (nextToken == Token.KEYWORD_TRUE) {
      readToken(Token.KEYWORD_TRUE);
      return new BooleanLiteral(true);
View Full Code Here


  }

  public void testNullLiteral() throws CompilerException {
    assertParserOutput(
        new ExpressionStatement(
            new NullLiteral()
        ),
        "null;"
    );
  }
View Full Code Here

TOP

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

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.