Examples of AstDirective


Examples of net.sf.lapg.parser.ast.AstDirective

    priorities = new ArrayList<LiPrio>();
    inputs = new ArrayList<LiSymbol>();

    for(AstGrammarPart clause : tree.getRoot().getGrammar()) {
      if(clause instanceof AstDirective) {
        AstDirective directive = (AstDirective) clause;
        String key = directive.getKey();
        List<LiSymbol> val = resolve(directive.getSymbols());
        if(key.equals("input")) {
          inputs.addAll(val);
        } else if(key.equals("left")) {
          priorities.add(new LiPrio(Prio.LEFT, val.toArray(new LiSymbol[val.size()]), directive));
        } else if( key.equals("right") ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.