Package net.sf.lapg.parser.ast

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


    LiSymbol sym = symbolsMap.get(name);
    if(sym == null) {
      if(name.length() > 3 && name.endsWith("opt")) {
        sym = symbolsMap.get(name.substring(0, name.length()-3));
        if(sym != null) {
          LiSymbol symopt = create(new AstIdentifier(id.getName(), id.getInput(), id.getOffset(), id.getEndOffset()), sym.getType(), false);
          rules.add(new LiRule(symopt, new LiSymbolRef[0], null, null, null, id));
          rules.add(new LiRule(symopt, new LiSymbolRef[]{new LiSymbolRef(sym,null,null,null)}, null, null, null, id));
          return symopt;
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.lapg.parser.ast.AstIdentifier

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.