Package org.allspice.util

Examples of org.allspice.util.PositionRange


    for(int i = 0; i < rule.rhs.size(); i++) {
      r = r.tail ;
    }
    Position end = currTokenPositionRange.end ;
    Position start = rule.rhs.isEmpty() ? end : state.reductions.head.range.start ;
    PositionRange range = new PositionRange(start,end);
    Object obj = parseTable.reduce(rule,this,state,range) ;
    r = new ParserStackEntry<StackObject>(new StackObject(obj,range),r) ;
    return r ;
  }
View Full Code Here


   */
  protected void advanceToken() throws SyntaxError {
    Position start = tokens.getPosition() ;
    currToken = tokens.next();
    Position end = tokens.getPosition() ;
    currTokenPositionRange = new PositionRange(start,end) ;
  }
View Full Code Here

  }

  protected <T extends CompiledItem> void _compile(TypeName forwardType,T inst,EvaluationContext context,InstList il) {
    try {
      ExprCompiler<T> tconv = getCompiler(inst) ;
      PositionRange range = inst.getPositionRange() ;
      if (range != null) {
        il.add(new Nop(range.start.lineno)) ;
      }
      tconv.compile(forwardType, inst, context, il) ;
    } catch (CompilerException e) {
View Full Code Here

TOP

Related Classes of org.allspice.util.PositionRange

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.