/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | GrammarAST.java | 60 public class GrammarAST extends CommonTree { class 96 public Set<GrammarAST> rewriteRefsShallow; 109 public Set<GrammarAST> rewriteRefsDeep; 145 public GrammarAST() {;} in GrammarAST() method in GrammarAST 147 public GrammarAST(int t, String txt) { in GrammarAST() method in GrammarAST 151 public GrammarAST(Token token) { in GrammarAST() method in GrammarAST 161 GrammarAST t = ((GrammarAST)ast); in initialize() 329 public GrammarAST getLastChild() { in getLastChild() 332 return (GrammarAST)getChild(getChildCount() - 1); in getLastChild() 335 public GrammarAST getNextSibling() { in getNextSibling() [all …]
|
D | LeftRecursiveRuleAnalyzer.java | 26 public GrammarAST retvals; 55 public void setReturnValues(GrammarAST t) { in setReturnValues() 61 public void setTokenPrec(GrammarAST t, int alt) { in setTokenPrec() 86 public void binaryAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) { in binaryAlt() 87 altTree = GrammarAST.dupTree(altTree); in binaryAlt() 88 rewriteTree = GrammarAST.dupTree(rewriteTree); in binaryAlt() 113 public void ternaryAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) { in ternaryAlt() 114 altTree = GrammarAST.dupTree(altTree); in ternaryAlt() 115 rewriteTree = GrammarAST.dupTree(rewriteTree); in ternaryAlt() 138 public void prefixAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) { in prefixAlt() [all …]
|
D | Rule.java | 58 public GrammarAST tree; 64 public GrammarAST argActionAST; 66 public GrammarAST EORNode; 116 protected Map<String, GrammarAST> actions = 117 new HashMap<String, GrammarAST>(); 124 protected List<GrammarAST> inlineActions = new ArrayList<GrammarAST>(); 139 protected Map<String, List<GrammarAST>>[] altToTokenRefMap; 149 protected Map<String, List<GrammarAST>>[] altToRuleRefMap; 173 altToTokenRefMap[alt] = new HashMap<String, List<GrammarAST>>(); in Rule() 174 altToRuleRefMap[alt] = new HashMap<String, List<GrammarAST>>(); in Rule() [all …]
|
D | Grammar.java | 158 public GrammarAST blockAST; 164 public GrammarAST elementRef; 171 public LabelElementPair(Token label, GrammarAST elementRef) { in LabelElementPair() 328 protected Set<GrammarAST> ruleRefs = new HashSet<GrammarAST>(); 330 protected Set<GrammarAST> scopedRuleRefs = new HashSet(); 359 protected LinkedHashMap<String, GrammarAST> nameToSynpredASTMap; 413 protected GrammarAST grammarTree = null; 476 public Set<GrammarAST> blocksWithSynPreds = new HashSet(); 494 public Set<GrammarAST> blocksWithSemPreds = new HashSet(); 665 setGrammarTree((GrammarAST)result.getTree()); in parseAndBuildAST() [all …]
|
D | GrammarSanity.java | 188 public void checkRuleReference(GrammarAST scopeAST, in checkRuleReference() 189 GrammarAST refAST, in checkRuleReference() 190 GrammarAST argsAST, in checkRuleReference() 265 public void ensureAltIsSimpleNodeOrTree(GrammarAST altAST, in ensureAltIsSimpleNodeOrTree() 266 GrammarAST elementAST, in ensureAltIsSimpleNodeOrTree() 270 GrammarAST next = (GrammarAST)elementAST.getNextSibling(); in ensureAltIsSimpleNodeOrTree() 292 (GrammarAST)elementAST.getNextSibling(), in ensureAltIsSimpleNodeOrTree() 315 protected boolean isNextNonActionElementEOA(GrammarAST t) { in isNextNonActionElementEOA() 319 t = (GrammarAST)t.getNextSibling(); in isNextNonActionElementEOA()
|
D | AssignTokenTypesBehavior.java | 68 protected void trackString(GrammarAST t) { in trackString() 104 protected void trackToken(GrammarAST t) { in trackToken() 116 protected void trackTokenRule(GrammarAST t, in trackTokenRule() 117 GrammarAST modifier, in trackTokenRule() 118 GrammarAST block) in trackTokenRule() 154 alias(t, (GrammarAST)block.getChild(0).getChild(0)); in trackTokenRule() 162 protected void alias(GrammarAST t, GrammarAST s) { in alias()
|
D | GrammarSerializerFoo.java | 122 public void alt(GrammarAST alt) { in alt() 148 public void ruleRef(GrammarAST t) { in ruleRef() 159 public void token(GrammarAST t) { in token() 171 public void charLiteral(GrammarAST t) { in charLiteral() 186 public void wildcard(GrammarAST t) { in wildcard()
|
D | AttributeScope.java | 86 public LinkedHashMap<String, GrammarAST> actions = new LinkedHashMap(); 144 public final void defineNamedAction(GrammarAST nameAST, GrammarAST actionAST) in defineNamedAction() 147 GrammarAST a = actions.get(actionName); in defineNamedAction()
|
D | NameSpaceChecker.java | 129 GrammarAST refAST = (GrammarAST)iter.next(); in lookForReferencesToUndefinedSymbols() 163 GrammarAST scopeAST = (GrammarAST)it.next(); // ^(DOT ID atom) in lookForReferencesToUndefinedSymbols() 165 GrammarAST refAST = (GrammarAST)scopeAST.getChild(1); in lookForReferencesToUndefinedSymbols()
|
D | NFAFactory.java | 118 public StateCluster build_Atom(int label, GrammarAST associatedAST) { in build_Atom() 128 public StateCluster build_Atom(GrammarAST atomAST) { in build_Atom() 136 public StateCluster build_Set(IntSet set, GrammarAST associatedAST) { in build_Set() 175 public StateCluster build_CharLiteralAtom(GrammarAST charLiteralAST) { in build_CharLiteralAtom() 197 public StateCluster build_StringLiteralAtom(GrammarAST stringLiteralAST) { in build_StringLiteralAtom() 258 public StateCluster build_SemanticPredicate(GrammarAST pred) { in build_SemanticPredicate() 278 public StateCluster build_Action(GrammarAST action) { in build_Action() 671 public StateCluster build_Wildcard(GrammarAST associatedAST) { in build_Wildcard() 686 public StateCluster build_WildcardTree(GrammarAST associatedAST) { in build_WildcardTree()
|
D | GrammarReport.java | 306 GrammarAST decisionAST = in getDFALocations() 476 public static boolean blockHasSynPred(GrammarAST blockAST) { in blockHasSynPred() 477 GrammarAST c1 = blockAST.findFirstType(ANTLRParser.SYN_SEMPRED); in blockHasSynPred() 478 GrammarAST c2 = blockAST.findFirstType(ANTLRParser.BACKTRACK_SEMPRED); in blockHasSynPred()
|
D | GrammarAnalysisAbortedMessage.java | 45 GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); in toString()
|
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
D | LeftRecursiveRuleWalker.g | 38 ASTLabelType=GrammarAST; 79 public void setTokenPrec(GrammarAST t, int alt) {} 80 public void binaryAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) {} 81 public void ternaryAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) {} 82 public void prefixAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) {} 83 public void suffixAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) {} 84 public void otherAlt(GrammarAST altTree, GrammarAST rewriteTree, int alt) {} 85 public void setReturnValues(GrammarAST t) {} 166 GrammarAST rew=(GrammarAST)$start.getNextSibling(); 196 prefix : ^( ALT (^(BACKTRACK_SEMPRED .*))? {setTokenPrec((GrammarAST)input.LT(1), outerAlt);} ({!((… [all …]
|
D | DefineGrammarItemsWalker.g | 36 ASTLabelType = GrammarAST; 40 HashMap<GrammarAST, GrammarAST> actions; 52 protected GrammarAST root; 54 protected GrammarAST currentRewriteBlock; 55 protected GrammarAST currentRewriteRule; 79 GrammarAST p = root; 82 p = (GrammarAST)p.getNextSibling(); 99 protected final void trackInlineAction( GrammarAST actionAST ) { 128 $AttributeScopeActions::actions = new HashMap<GrammarAST, GrammarAST>(); 135 for (GrammarAST action : $AttributeScopeActions::actions.keySet()) [all …]
|
D | AssignTokenTypesWalker.g | 87 ASTLabelType = GrammarAST; 105 protected static GrammarAST stringAlias; 106 protected static GrammarAST charAlias; 107 protected static GrammarAST stringAlias2; 108 protected static GrammarAST charAlias2; 135 stringAlias = (GrammarAST)adaptor.create( BLOCK, "BLOCK" ); 137 GrammarAST alt = (GrammarAST)adaptor.create( ALT, "ALT" ); 147 charAlias = (GrammarAST)adaptor.create( BLOCK, "BLOCK" ); 149 GrammarAST alt = (GrammarAST)adaptor.create( ALT, "ALT" ); 159 stringAlias2 = (GrammarAST)adaptor.create( BLOCK, "BLOCK" ); [all …]
|
D | ANTLR.g | 55 ASTLabelType=GrammarAST; 121 import org.antlr.tool.GrammarAST; 141 protected GrammarAST currentBlockAST = null; 150 private static class GrammarASTErrorNode extends GrammarAST { 238 GrammarAST t = new GrammarAST( payload ); 246 GrammarAST t = new GrammarASTErrorNode(input, start, stop, e); 290 protected GrammarAST setToBlockWithSet(GrammarAST b) { 296 GrammarAST alt = (GrammarAST)adaptor.create(ALT, "ALT"); 302 GrammarAST block = (GrammarAST)adaptor.create(BLOCK, b.getToken(), "BLOCK"); 312 protected GrammarAST createBlockFromDupAlt(GrammarAST alt) { [all …]
|
D | CodeGenTreeWalker.g | 44 ASTLabelType=GrammarAST; 128 protected final ST getWildcardST(GrammarAST elementAST, GrammarAST ast_suffix, String label) { 138 GrammarAST elementAST, 139 GrammarAST ast_suffix, 167 GrammarAST elementAST, 168 GrammarAST ast_suffix, 229 protected final String getSTSuffix(GrammarAST elementAST, GrammarAST ast_suffix, String label) { 266 protected final List<String> getTokenTypesAsTargetLabels(Collection<GrammarAST> refs) 272 for ( GrammarAST t : refs ) 368 String ruleName = ((GrammarAST)input.LT(1)).getChild(0).getText(); [all …]
|
D | ANTLRTreePrinter.g | 44 ASTLabelType = GrammarAST; 58 private ANTLRTreePrinter.block_return block(GrammarAST t, boolean forceParens) throws RecognitionEx… 64 public final int countAltsForBlock(GrammarAST t) { 306 // if ( parent.getType() == BLOCK && countAltsForBlock((GrammarAST)parent) > 1 ) 405 GrammarAST predAST=grammar.getSyntacticPredicate(name);
|
D | TreeToNFAConverter.g | 38 ASTLabelType = GrammarAST; 76 public final IntSet setRule(GrammarAST t) throws RecognitionException { 86 public final int testBlockAsSet( GrammarAST t ) throws RecognitionException { 105 public final int testSetRule( GrammarAST t ) throws RecognitionException { 176 private boolean hasElementOptions(GrammarAST node) { 379 GrammarAST blk = $start; 381 blk = (GrammarAST)blk.getChild(0); 383 GrammarAST eob = blk.getLastChild(); 546 GrammarAST stNode = (GrammarAST)$n.getChild(0);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
D | ActionLabel.java | 31 import org.antlr.tool.GrammarAST; 34 public GrammarAST actionAST; 36 public ActionLabel(GrammarAST actionAST) { in ActionLabel()
|
D | DecisionProbe.java | 36 import org.antlr.tool.GrammarAST; 446 GrammarAST blockAST = in issueWarnings() 474 GrammarAST decAST = dfa.getDecisionASTNode(); in issueWarnings() 475 GrammarAST altAST = (GrammarAST)decAST.getChild(altI-1); in issueWarnings() 476 GrammarAST delegatedTokensAlt = in issueWarnings() 477 (GrammarAST)altAST.getFirstChildWithType(ANTLRParser.DOT); in issueWarnings() 506 GrammarAST blockAST = in stripWildCardAlts() 509 GrammarAST lastAltAST = null; in stripWildCardAlts() 512 lastAltAST = (GrammarAST)blockAST.getChild(lastAlt.intValue()); in stripWildCardAlts() 515 lastAltAST = (GrammarAST)blockAST.getChild(lastAlt.intValue()-1); in stripWildCardAlts()
|
D | NFAState.java | 31 import org.antlr.tool.GrammarAST; 98 public GrammarAST associatedASTNode; 221 public void setDecisionASTNode(GrammarAST decisionASTNode) { in setDecisionASTNode()
|
D | PredicateLabel.java | 31 import org.antlr.tool.GrammarAST; 42 public PredicateLabel(GrammarAST predicateASTNode) { in PredicateLabel()
|
D | SemanticContext.java | 33 import org.antlr.tool.GrammarAST; 89 public GrammarAST predicateAST; 116 predicateAST = new GrammarAST(); in Predicate() 120 public Predicate(GrammarAST predicate) { in Predicate()
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | CodeGenerator.java | 496 GrammarAST actionAST = in verifyActionScopesOkForTarget() 497 (GrammarAST)scopeActions.values().iterator().next(); in verifyActionScopesOkForTarget() 530 GrammarAST actionAST = (GrammarAST)scopeActions.get(name); in translateActionAttributeReferencesForSingleScope() 554 public void generateLocalFOLLOW(GrammarAST referencedElementNode, in generateLocalFOLLOW() 891 GrammarAST actionTree) in translateAction() 908 GrammarAST actionTree) in translateArgAction() 1060 GrammarAST rewriteTree = (GrammarAST)parseResult.getTree(); in translateTemplateConstructor()
|