HomeSort by relevance Sort by last modified time
    Searched refs:RULE (Results 1 - 23 of 23) sorted by null

  /external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
ANTLRv3Tree.g 42 : ^( grammarType ID DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+ )
87 rule
88 : ^( RULE ID modifier? (^(ARG ARG_ACTION))? (^(RET ARG_ACTION))?
169 /** Matches ENBF blocks (and token sets via block rule) */
DefineGrammarItemsWalker.g 78 // form is (header ... ) ( grammar ID (scope ...) ... ( rule ... ) ( rule ... ) ... )
85 if ( p.getChild( i ).getType() != RULE )
89 //Console.Out.WriteLine( "rule " + ruleName + " prev=" + prev.getText() );
90 if (Rule.getRuleType(ruleName) == Grammar.LEXER) {
91 // remove lexer rule
100 Rule r = grammar.getRule( currentRuleName );
203 : (rule | ^(PREC_RULE .*))+
206 rule
211 Rule r = null
    [all...]
LeftRecursiveRuleWalker.g 55 private int outerAlt; // which outer alt of rule?
56 public int numAlts; // how many alts for this rule total?
116 : ^( r=RULE id=ID {ruleName=$id.getText();}
278 | ^(DOT ID atom) // scope override on rule
ANTLRv3.g 40 RULE;
100 rule+
103 id DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+
153 rule
159 id {$rule::name = $id.text;}
166 -> ^( RULE id {modifier!=null?adaptor.create(modifier):null} ^(ARG[$arg] $arg)? ^('returns' $rt)?
204 // leave here to demonstrate use of {...} in rewrite rule
313 /** Matches ENBF blocks (and token sets via block rule) */
328 Character.isUpperCase($rule::name.charAt(0))}?
329 // if lexer rule in combined, leave as pred for lexe
    [all...]
ANTLR.g 74 RULE;
123 import org.antlr.tool.Rule;
330 // if they want backtracking and it's not a lexer rule in combined grammar
338 Rule.getRuleType(currentRuleName) == Grammar.LEXER) &&
388 * ^(RULE[block,"rule"] ID["name"] {modifier} ARG["ARG"] RET["RET"] SCOPE["scope"] {block} EOR[EOBAST,"<end-of-rule>"])
390 GrammarAST rule = (GrammarAST)adaptor.create( RULE, block.getToken(), "rule" );
    [all...]
TreeToNFAConverter.g 87 Rule r = grammar.getLocallyDefinedRule( currentRuleName );
121 //System.Console.Out.WriteLine( "adding follow link to rule " + ruleName );
122 // find last link in FOLLOW chain emanating from rule
123 Rule r = grammar.getRule( ruleName );
212 : (rule | ^(PREC_RULE .*))+
215 rule
216 : ^( RULE id=ID
239 if (Rule.getRuleType(currentRuleName) == Grammar.PARSER || grammar.type==Grammar.LEXER)
241 // attach start node to block for this rule
242 Rule thisR = grammar.getLocallyDefinedRule(currentRuleName)
    [all...]
ANTLRTreePrinter.g 125 | rule
228 : ( rule | precRule )+
231 rule
232 : ^( RULE id=ID
304 //for ( Antlr.Runtime.Tree.Tree parent = $start.getParent(); parent != null && parent.getType() != RULE; parent = parent.getParent() )
452 | ^(DOT ID {out($ID.text+".");} atom) // scope override on rule
AssignTokenTypesWalker.g 48 * b) token rule definitions get token types if not already defined
52 * a) Any char or string literal gets a token type in a parser rule
54 * a fragment lexer rule
56 * which must add a rule to the lexer
57 * d) token rule definitions get token types if not already defined
58 * e) token rule definitions may also alias a token name to a literal.
59 * E.g., Rule 'FOR : "for";' will alias FOR to "for" in the sense that
69 * 2. Finds a list of all token name rule definitions;
71 * 3. Finds a list of all simple token rule defs of form "<NAME> : <literal>;"
290 : rule
    [all...]
CodeGenTreeWalker.g 141 Rule r = grammar.getRule( currentRuleName );
147 // unless we're in a synpred rule.
171 if (name == "matchSet" && elementAST.enclosingRuleName != null && elementAST.enclosingRuleName.length() > 0 && Rule.getRuleType(elementAST.enclosingRuleName) == Grammar.LEXER)
173 if ( ( elementAST.getParent().getType() == ANTLRLexer.ALT && elementAST.getParent().getParent().getParent().getType() == RULE && elementAST.getParent().getParent().getChildCount() == 2 )
174 || ( elementAST.getParent().getType() == ANTLRLexer.NOT && elementAST.getParent().getParent().getParent().getParent().getType() == RULE && elementAST.getParent().getParent().getParent().getChildCount() == 2 ) ) {
175 // single alt at the start of the rule needs to be checked
183 // unless we're in a synpred rule.
184 Rule r = grammar.getRule( currentRuleName );
209 Rule r = grammar.getRule( currentRuleName );
239 Rule ruleDescr = grammar.getRule( currentRuleName )
    [all...]
  /external/bison/data/
glr.c 132 # b4_rhs_value(RULE-LENGTH, NUM, [TYPE])
134 # Expansion of $<TYPE>NUM, where the current rule has RULE-LENGTH
152 # b4_rhs_location(RULE-LENGTH, NUM)
154 # Expansion of @NUM, where the current rule has RULE-LENGTH symbols
323 /* YYMAXRHS -- Maximum number of symbols on right-hand side of rule. */
326 accessed by $0, $-1, etc., in any rule. */
343 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
356 /* YYRLINE[YYN] -- source line where rule number YYN was defined. *
    [all...]
yacc.c 145 # b4_rhs_value(RULE-LENGTH, NUM, [TYPE])
147 # Expansion of $<TYPE>NUM, where the current rule has RULE-LENGTH
165 # b4_rhs_location(RULE-LENGTH, NUM)
167 # Expansion of @NUM, where the current rule has RULE-LENGTH symbols
631 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
644 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
669 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
675 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. *
    [all...]
  /external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/
ANTLRv3.g 41 RULE;
102 rule+
105 id DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+
155 rule
160 this.rules.add($rule::name);
164 id {$rule::name = $id.text;}
171 -> ^( RULE id {modifier!=null?adaptor.create(modifier):null} ^(ARG $arg)? ^(RET $rt)?
207 // leave here to demonstrate use of {...} in rewrite rule
284 /** Matches ENBF blocks (and token sets via block rule) */
299 Character.isUpperCase($rule::name.charAt(0))}
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
Strip.java 81 wiz.visit(t, ANTLRv3Parser.AT, // ^('@' id ACTION) rule actions
95 wiz.visit(t, ANTLRv3Parser.ARG, // wipe rule arguments
104 wiz.visit(t, ANTLRv3Parser.RET, // wipe rule return declarations
210 CommonTree root = (CommonTree)t.getAncestor(ANTLRv3Parser.RULE);
212 CommonTree rule = (CommonTree)root.getChild(0); local
213 //System.out.println("rule: "+rule);
214 if ( !Character.isUpperCase(rule.getText().charAt(0)) ) {
CompositeGrammar.java 109 /** Map a rule index to its name; use a Vector on purpose as new
114 protected Vector<Rule> ruleIndexToRuleList = new Vector<Rule>();
157 public Rule getRule(String ruleName) {
251 * one that has to have a complete grammar rule interface. The delegates
255 public Set<Rule> getDelegatedRules(Grammar g) {
259 Set<Rule> rules = getAllImportedRules(g);
261 Rule r = (Rule) it.next();
262 Rule localRule = g.getLocallyDefinedRule(r.name)
    [all...]
Grammar.java 70 {"<invalid>", "rule", "token", "rule-list", "token-list", "wildcard-tree", "wildcard-tree-list"};
167 * Currently only set for rule labels.
176 public Rule getReferencedRule() {
325 /** The unique set of all rule references in any rule; set of tree node
326 * objects so two refs to same rule can exist but at different line/position.
332 /** The unique set of all token ID references in any rule */
342 * rules. This is stuff we couldn't refactor to precedence rule.
344 protected Set<Rule> leftRecursiveRules
    [all...]
  /external/iproute2/doc/
ip-cref.tex 62 As a rule, the information is statistics or some time values.
116 \item \verb|rule| --- rule in routing policy database
128 As a rule, it is possible to \verb|add|, \verb|delete| and
165 and exits. As a rule, the error message will contain information
195 syntax errors). However, as a rule, their meaning is clear
215 \verb|ip| \verb|rule| command will fail, f.e.
217 kuznet@kaiser $ ip rule list
438 involved. As a rule, it indicates that the device needs no address
508 in dropped packets. As a rule, if the interface is overrun, it mean
    [all...]
  /external/antlr/antlr-3.4/lib/
antlr-3.4-complete.jar 
  /prebuilts/misc/common/antlr/
antlr-3.4-complete.jar 
  /prebuilts/sdk/tools/lib/
lombok-ast-0.2.jar 
  /prebuilts/tools/common/lombok-ast/
lombok-ast-0.2.1.jar 
lombok-ast-0.2.jar 
  /build/tools/droiddoc/templates-sac/assets/js/
android_3p-bundle.js 787 * recursion. For example, the HTML lexer rule for SCRIPT elements looks
790 * be called with '<script>' which would not match the same rule since
792 * the generic tag rule. The handler registered for the 'js' extension would
794 * be called with '<\/script>' which would not match the original rule and
795 * so the generic tag rule would identify it as a tag.
    [all...]
  /build/tools/droiddoc/templates-sdk/assets/js/
android_3p-bundle.js 787 * recursion. For example, the HTML lexer rule for SCRIPT elements looks
790 * be called with '<script>' which would not match the same rule since
792 * the generic tag rule. The handler registered for the 'js' extension would
794 * be called with '<\/script>' which would not match the original rule and
795 * so the generic tag rule would identify it as a tag.
    [all...]

Completed in 4812 milliseconds