Package anvil.script.expression

Examples of anvil.script.expression.Expression


    StatementModifier(stmt);
  }

  final public void YieldStatement() throws ParseException {
  Token t;
  Expression expression = null;
  Statement stmt;
    t = jj_consume_token(YIELD);
    ListExpression();
      expression = (Expression)pop();
    if (flowPeek().getFunctionStatement().getType() == Type.CONSTRUCTOR) {
View Full Code Here


  }

  final public void ListExpression() throws ParseException {
  Location loc = getCurrentLocation();
    List(false, false);
    push(new Expression(pop(), loc));
  }
View Full Code Here

  }

  final public void ValueExpression() throws ParseException {
  Location loc = getCurrentLocation();
    ExpressionStart();
    push(new Expression(pop(), loc));
  }
View Full Code Here

    }
    assignment.setChild(count, pop());
    while(count-- > 0) {
      assignment.setChild(count, pop());
    }
    push(new Expression(assignment, location));
  }
View Full Code Here

  }

  final public void AssignableExpression() throws ParseException {
  Location loc = getCurrentLocation();
    Symbol(LinkNode.ASSIGN);
    push(new Expression(pop(), loc));
  }
View Full Code Here

      jj_la1[124] = jj_gen;
      ;
    }
    PrimaryExpression();
    if (op != null) {
      Expression expr = new Expression(pop(), location);
      EvalStatement evalstmt = new EvalStatement(thunk, location, expr);
      thunk.addChild(evalstmt);
      push(new ThunkNode(context, thunk));
      flowPop();
      flowPop();
View Full Code Here

      Location location = parent.getLocation();
      AssignmentNode assign = new AssignmentNode(location, 2);
      assign.setChild(0, new EmptyReferenceNode(var));
      assign.setChild(1, pop());
      parent.setChildStatement(new EvalStatement(parent, location,
        new Expression(assign, location)));
      compr.init(root, var);
      break;
    default:
      jj_la1[144] = jj_gen;
      jj_consume_token(-1);
View Full Code Here

  {
    Location location = _expression.getLocation();
    AssignmentNode assignment = new AssignmentNode(location, 2);
    assignment.setChild(0, new StaticVariableNode(this));
    assignment.setChild(1, new ConstantNode(getValue()));
    return new Expression(assignment, location);
  }
View Full Code Here

  {
    Location location = _expression.getLocation();
    AssignmentNode assignment = new AssignmentNode(location, 2);
    assignment.setChild(0, new StaticVariableNode(this));
    assignment.setChild(1, _expression.getChild());
    return new Expression(assignment, location);
  }
View Full Code Here

      for(int i=0; i<n; i++) {
        String name = tag.getName(i);
        if (name.equalsIgnoreCase("param")) {

          String param = tag.getValue(i);
          Expression defaultexpr = null;

          if ((i<n-1) && tag.getName(i+1).equalsIgnoreCase("default")) {
            String def = tag.getValue(i+1);
            defaultexpr = Grammar.parseExpression(def, getLocation(), parser);
            i++;
View Full Code Here

TOP

Related Classes of anvil.script.expression.Expression

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.