Home
last modified time | relevance | path

Searched refs:startRule (Results 1 – 7 of 7) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DInterpreter.java124 public void scan(String startRule, in scan() argument
135 if ( grammar.getRuleStartState(startRule)==null ) { in scan()
146 NFAState start = grammar.getRuleStartState(startRule); in scan()
147 NFAState stop = grammar.getRuleStopState(startRule); in scan()
148 parseEngine(startRule, start, stop, in, ruleInvocationStack, in scan()
152 public CommonToken scan(String startRule) in scan() argument
155 return scan(startRule, null); in scan()
158 public CommonToken scan(String startRule, in scan() argument
163 scan(startRule, actions, visitedStates); in scan()
167 public void parse(String startRule, in parse() argument
[all …]
DRandomPhrase.java69 protected static void randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule) { in randomPhrase() argument
70 NFAState state = g.getRuleStartState(startRule); in randomPhrase()
71 NFAState stopState = g.getRuleStopState(startRule); in randomPhrase()
146 String startRule = args[1]; in main() local
174 if ( parser.getRule(startRule)==null ) { in main()
175 System.out.println("undefined start rule "+startRule); in main()
197 randomPhrase(parser, tokenTypes, startRule); in main()
221 System.err.println("Error walking "+grammarFileName+" rule "+startRule+" seed "+seed); in main()
225 System.err.println("Exception walking "+grammarFileName+" rule "+startRule+" seed "+seed); in main()
DInterp.java71 String startRule = args[2]; in main() local
93 if ( parser.getRule(startRule)==null ) { in main()
94 System.out.println("undefined start rule "+startRule); in main()
121 if ( parser.getRule(startRule)==null ) { in main()
122 System.err.println("Rule "+startRule+" does not exist in "+grammarFileName); in main()
126 ParseTree t = parseEngine.parse(startRule); in main()
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestLeftRecursion.java357 public void runTests(String grammar, String[] tests, String startRule) { in runTests() argument
365 startRule, in runTests()
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/
DStGUnit.g64 {adapter.startRule($parserRule.text);}
66 {adapter.startRule($lexerRule.text);}
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DTestSuiteAdapter.java49 public void startRule(String name) { in startRule() method in TestSuiteAdapter
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DTokenRewriteStream.as58 * parser.startRule();