Package anvil

Examples of anvil.Location


    List(false, false);
    push(new Expression(pop(), loc));
  }

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


      jj_la1[87] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    List(false, false);
    Location location = toLocation(op);
    Parent assignment = null;
    switch(op.kind) {
    case ASSIGN:
      assignment = new AssignmentNode(location, count + 1);
      break;
View Full Code Here

    }
    push(new Expression(assignment, location));
  }

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

        push(new IsNode(pop(), Any.IS_REF));
          break;
        case MODULE:
        case SYMBOL:
          name = Name(null);
        Location location = toLocation(t);
        LinkNode link = new LinkNode(flowPeek(), location, name, null, LinkNode.GET);
        push(new InstanceOfNode(pop(), link, location));
          break;
        default:
          jj_la1[120] = jj_gen;
View Full Code Here

    }
  }

  final public void LazyExpression() throws ParseException {
  Token op = null;
  Location location = null;
  FunctionStatement thunk = null;
  FunctionStatement context = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case CARET:
      op = jj_consume_token(CARET);
View Full Code Here

    }
  }

  final public void NewConstruct() throws ParseException {
  Token t;
  Location location;
  Name name = new Name();
    t = jj_consume_token(NEW);
      location = toLocation(t);
      name.add(t);
    Name(name);
View Full Code Here

  }

  final public void Symbol(int role) throws ParseException {
  Token t;
  Token var = null;
  Location location;
  Parent args = null;
  Name name = new Name();
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case MODULE:
    case SYMBOL:
View Full Code Here

    case TRUE:
    case PATTERN:
      ArrayArgument();
      FunctionStatement function = flowPeek().getFunctionStatement();
      VariableNode var = new VariableNode(function.declare("array$"+root.hashCode()));
      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)));
View Full Code Here

  }
 
 
  public Expression createStaticInitializer()
  {
    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

  }
 
 
  public Expression createInitializer()
  {
    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

TOP

Related Classes of anvil.Location

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.