Package com.google.minijoe.compiler.ast

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


      readToken();
      UnaryOperatorExpression result = new UnaryOperatorExpression(parseUnaryExpression(), token);
      return result;
    } else if (nextToken == Token.KEYWORD_DELETE) {
      readToken(Token.KEYWORD_DELETE);
      return new DeleteExpression(parseUnaryExpression());
    } else {
      return parsePostfixExpression();
    }
  }
View Full Code Here


  }

  public void testDeleteExpression() throws CompilerException {
    assertParserOutput(
        new ExpressionStatement(
            new DeleteExpression(
                new Identifier("foo")
            )
        ),
        "delete foo;"
    );
    assertParserOutput(
        new ExpressionStatement(
            new UnaryOperatorExpression(
                new DeleteExpression(
                    new Identifier("foo")
                ),
                Token.KEYWORD_VOID
            )
        ),
View Full Code Here

TOP

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

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.