Package anvil.script.statements

Examples of anvil.script.statements.PrintStatement


  Statement stmt;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case PRINT:
      t = jj_consume_token(PRINT);
      list = PrintValueList(null);
      stmt = new PrintStatement(flowPeek(), toLocation(t), list, false);
      break;
    case HOOK:
      t = jj_consume_token(HOOK);
      list = PrintValueList(null);
      stmt = new PrintStatement(flowPeek(), toLocation(t), list, false);
      break;
    case PRINTLN:
      t = jj_consume_token(PRINTLN);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case MODULE:
      case SYMBOL:
      case BEGIN:
      case DOT:
      case STAR:
      case IMPORT:
      case STRING_LITERAL:
      case RANGE:
      case FUNCTION:
      case OPEN:
      case SUPER:
      case STATIC:
      case CLASS:
      case VAR:
      case ET:
      case NEGATION:
      case PLUS:
      case MINUS:
      case MINUSMINUS:
      case PLUSPLUS:
      case COPYOF:
      case CLONEOF:
      case TYPEOF:
      case SIZEOF:
      case CLASSOF:
      case BOOLEAN:
      case INT:
      case FLOAT:
      case STRING:
      case DEFINED:
      case UNDEFINED:
      case NULL:
      case OPEN_BRACKET:
      case CARET:
      case DELETE:
      case BEGIN_LIST:
      case NEW:
      case THIS:
      case INTEGER_LITERAL:
      case FLOATING_POINT_LITERAL:
      case INF:
      case FALSE:
      case TRUE:
      case PATTERN:
        list = PrintValueList(null);
        break;
      default:
        jj_la1[59] = jj_gen;
        ;
      }
      if (list == null) {
        list = new Expression[0];
      }
      stmt = new PrintStatement(flowPeek(), toLocation(t), list, true);
      break;
    case PRINTBR:
      t = jj_consume_token(PRINTBR);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case MODULE:
      case SYMBOL:
      case BEGIN:
      case DOT:
      case STAR:
      case IMPORT:
      case STRING_LITERAL:
      case RANGE:
      case FUNCTION:
      case OPEN:
      case SUPER:
      case STATIC:
      case CLASS:
      case VAR:
      case ET:
      case NEGATION:
      case PLUS:
      case MINUS:
      case MINUSMINUS:
      case PLUSPLUS:
      case COPYOF:
      case CLONEOF:
      case TYPEOF:
      case SIZEOF:
      case CLASSOF:
      case BOOLEAN:
      case INT:
      case FLOAT:
      case STRING:
      case DEFINED:
      case UNDEFINED:
      case NULL:
      case OPEN_BRACKET:
      case CARET:
      case DELETE:
      case BEGIN_LIST:
      case NEW:
      case THIS:
      case INTEGER_LITERAL:
      case FLOATING_POINT_LITERAL:
      case INF:
      case FALSE:
      case TRUE:
      case PATTERN:
        list = PrintValueList(new Expression(new ConstantNode("<br>\n"), null));
        break;
      default:
        jj_la1[60] = jj_gen;
        ;
      }
      if (list == null) {
        list = new Expression[0];
      }
      stmt = new PrintStatement(flowPeek(), toLocation(t), list, false);
      break;
    default:
      jj_la1[61] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
View Full Code Here

TOP

Related Classes of anvil.script.statements.PrintStatement

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.