/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
parsetok.h | 35 PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, 37 PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, 40 PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int, 42 PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *, 45 PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *, grammar *, 51 grammar *, int, 55 grammar *, int,
|
grammar.h | 2 /* Grammar interface */ 59 /* A grammar */ 65 int g_start; /* Start symbol of the grammar */ 67 } grammar; typedef in typeref:struct:__anon60460 71 grammar *newgrammar(int start); 72 dfa *adddfa(grammar *g, int type, char *name); 75 dfa *PyGrammar_FindDFA(grammar *g, int type); 80 void translatelabels(grammar *g); 82 void addfirstsets(grammar *g); 84 void PyGrammar_AddAccelerators(grammar *g) [all...] |
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
parsetok.h | 35 PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, 37 PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, 40 PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int, 42 PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *, 45 PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *, grammar *, 51 grammar *, int, 55 grammar *, int,
|
grammar.h | 2 /* Grammar interface */ 59 /* A grammar */ 65 int g_start; /* Start symbol of the grammar */ 67 } grammar; typedef in typeref:struct:__anon60583 71 grammar *newgrammar(int start); 72 dfa *adddfa(grammar *g, int type, char *name); 75 dfa *PyGrammar_FindDFA(grammar *g, int type); 80 void translatelabels(grammar *g); 82 void addfirstsets(grammar *g); 84 void PyGrammar_AddAccelerators(grammar *g) [all...] |
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
TestSets.java | 43 String grammar = local 44 "grammar P;\n" + 49 String found = execParser("P.g", grammar, "PParser", "PLexer", 55 String grammar = local 56 "grammar T;\n" + 58 String found = execParser("T.g", grammar, "TParser", "TLexer", 64 String grammar = local 65 "grammar T;\n" + 67 String found = execParser("T.g", grammar, "TParser", "TLexer", 73 String grammar local 82 String grammar = local 91 String grammar = local 100 String grammar = local 110 String grammar = local 120 String grammar = local 130 String grammar = local 140 String grammar = local 153 String grammar = local 163 String grammar = local 172 String grammar = local 181 String grammar = local 190 String grammar = local 200 String grammar = local 210 String grammar = local 220 String grammar = local 232 String grammar = local 242 String grammar = local 253 String grammar = local 264 String grammar = local 276 String grammar = local [all...] |
TestHeteroAST.java | 39 String grammar = local 40 "grammar T;\n" + 50 String found = execParser("T.g", grammar, "TParser", "TLexer", 56 String grammar = local 57 "grammar T;\n" + 62 String found = execParser("T.g", grammar, "TParser", "TLexer", 68 String grammar = local 69 "grammar T;\n" + 79 String found = execParser("T.g", grammar, "TParser", "TLexer", 85 String grammar local 103 String grammar = local 120 String grammar = local 137 String grammar = local 154 String grammar = local 171 String grammar = local 188 String grammar = local 207 String grammar = local 226 String grammar = local 246 String grammar = local 264 String grammar = local 281 String grammar = local 299 String grammar = local 324 String grammar = local 348 String grammar = local 378 String grammar = local 408 String grammar = local 435 String grammar = local 463 String grammar = local 490 String grammar = local 518 String grammar = local [all...] |
TestSemanticPredicateEvaluation.java | 34 String grammar = local 35 "grammar foo;\n" + 39 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 45 String grammar = local 46 "grammar foo;\n" + 51 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 57 String grammar = local 58 "grammar foo;\n" + 67 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 73 String grammar local 86 String grammar = local 100 String grammar = local 113 String grammar = local 125 String grammar = local 137 String grammar = local 148 String grammar = local 160 String grammar = local 172 String grammar = local 184 String grammar = local 197 String grammar = local 210 String grammar = local 227 String grammar = local [all...] |
TestJavaCodeGeneration.java | 41 String grammar = local 42 "grammar T;\n" + 48 "T.g", grammar, "TParser", null, false); 55 String grammar = local 56 "lexer grammar T;\n" + 61 "T.g", grammar, null, "T", false); 68 String grammar = local 69 "grammar T;\n" + 73 String found = execParser("T.g", grammar, "TParser", "TLexer", 80 String grammar local 92 String grammar = local 103 String grammar = local 114 String grammar = local 129 String grammar = local [all...] |
TestAutoAST.java | 37 String grammar = local 38 "grammar foo;\n" + 44 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 50 String grammar = local 51 "grammar foo;\n" + 57 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 63 String grammar = local 64 "grammar foo;\n" + 70 String found = execParser("foo.g", grammar, "fooParser", "fooLexer", 76 String grammar local 89 String grammar = local 102 String grammar = local 115 String grammar = local 128 String grammar = local 141 String grammar = local 154 String grammar = local 167 String grammar = local 180 String grammar = local 193 String grammar = local 206 String grammar = local 219 String grammar = local 232 String grammar = local 245 String grammar = local 259 String grammar = local 273 String grammar = local 287 String grammar = local 301 String grammar = local 314 String grammar = local 328 String grammar = local 343 String grammar = local 356 String grammar = local 373 String grammar = local 386 String grammar = local 399 String grammar = local 412 String grammar = local 425 String grammar = local 438 String grammar = local 451 String grammar = local 464 String grammar = local 477 String grammar = local 492 String grammar = local 506 String grammar = local 521 String grammar = local 537 String grammar = local 551 String grammar = local 564 String grammar = local 577 String grammar = local 593 String grammar = local 608 String grammar = local 624 String grammar = local 639 String grammar = local 653 String grammar = local 666 String grammar = local 681 String grammar = local 697 String grammar = local 713 String grammar = local 727 String grammar = local 742 String grammar = local 758 String grammar = local 772 String grammar = local 791 String grammar = local 811 String grammar = local [all...] |
TestTreeParsing.java | 34 String grammar = local 35 "grammar T;\n" + 43 "tree grammar TP; options {ASTLabelType=CommonTree;}\n" + 48 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", 54 String grammar = local 55 "grammar T;\n" + 63 "tree grammar TP; options {ASTLabelType=CommonTree;}\n" + 68 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", 74 String grammar = local 75 "grammar T;\n" 97 String grammar = local 121 String grammar = local 143 String grammar = local 164 String grammar = local 184 String grammar = local 205 String grammar = local 227 String grammar = local 248 String grammar = local 269 String grammar = local 293 String grammar = local 317 String grammar = local [all...] |
TestLeftRecursion.java | 10 String grammar = local 11 "grammar T;\n" + 18 String found = execParser("T.g", grammar, "TParser", "TLexer", 25 String grammar = local 26 "grammar T;\n" + 33 String found = execParser("T.g", grammar, "TParser", "TLexer", 40 String grammar = local 41 "grammar T;\n" + 62 runTests(grammar, tests, "e"); 66 String grammar local 97 String grammar = local 128 String grammar = local 160 String grammar = local 191 String grammar = local 232 String grammar = local 321 String grammar = local 339 String grammar = local [all...] |
TestSyntacticPredicateEvaluation.java | 34 String grammar = local 35 "grammar T;\n" + 53 String found = execParser("T.g", grammar, "TParser", "TLexer", 62 found = execParser("T.g", grammar, "TParser", "TLexer", 70 found = execParser("T.g", grammar, "TParser", "TLexer", 83 String grammar = local 84 "grammar T;\n" + 102 String found = execParser("T.g", grammar, "TParser", "TLexer", 111 found = execParser("T.g", grammar, "TParser", "TLexer", 119 found = execParser("T.g", grammar, "TParser", "TLexer" 131 String grammar = local 152 String grammar = local 174 String grammar = local 190 String grammar = local 205 String grammar = local 240 String grammar = local 291 String grammar = local 314 String grammar = local 342 String grammar = local 362 String grammar = local 381 String grammar = local 397 String grammar = local 409 String grammar = local [all...] |
TestTreeGrammarRewriteAST.java | 34 import org.antlr.tool.Grammar; 40 * in a normal grammar except that the atomic element is a node not 48 String grammar = local 49 "grammar T;\n" + 57 "tree grammar TP;\n"+ 62 String found = execTreeParser("T.g", grammar, "TParser", "TP.g", 68 String grammar = local 69 "grammar T;\n" + 77 "tree grammar TP;\n"+ 82 String found = execTreeParser("T.g", grammar, "TParser", "TP.g" 88 String grammar = local 107 String grammar = local 131 String grammar = local 151 String grammar = local 171 String grammar = local 191 String grammar = local 212 String grammar = local 260 String grammar = local 280 String grammar = local 300 String grammar = local 320 String grammar = local 340 String grammar = local 360 String grammar = local 381 String grammar = local 401 String grammar = local 421 String grammar = local 441 String grammar = local 461 String grammar = local 482 String grammar = local 502 String grammar = local 524 String grammar = local 544 String grammar = local 565 String grammar = local 585 String grammar = local 604 String grammar = local 626 String grammar = local 651 String grammar = local 672 String grammar = local 694 String grammar = local 716 String grammar = local 739 String grammar = local 762 String grammar = local 785 String grammar = local 808 String grammar = local 828 String grammar = local 851 String grammar = local 875 String grammar = local 898 String grammar = local 918 String grammar = local 938 String grammar = local 958 String grammar = local 981 String grammar = local 1001 String grammar = local 1021 String grammar = local 1041 String grammar = local 1061 String grammar = local 1081 String grammar = local 1101 String grammar = local [all...] |
TestSyntaxErrors.java | 36 String grammar = local 37 "grammar T;\n" + 42 String found = execParser("T.g", grammar, "TParser", "TLexer", "a", "ae", false); 49 String grammar = local 50 "grammar T;\n" + 55 System.out.println(grammar); 56 String found = execParser("T.g", grammar, "TParser", "TLexer", "a", "abe", false); 63 String grammar = local 64 "grammar T;\n" + 69 String found = execParser("T.g", grammar, "TParser", "TLexer", "a", "aaae", false) 76 String grammar = local 93 String grammar = local [all...] |
TestLexer.java | 33 import org.antlr.tool.Grammar; 46 String grammar = local 47 "grammar P;\n"+ 51 String found = execParser("P.g", grammar, "PParser", "PLexer", 59 String grammar = local 60 "grammar P;\n"+ 65 String found = execParser("P.g", grammar, "PParser", "PLexer", 73 String grammar = local 74 "grammar P;\n"+ 79 String found = execParser("P.g", grammar, "PParser", "PLexer" 85 String grammar = local 100 String grammar = local 114 String grammar = local 127 String grammar = local 139 String grammar = local 151 String grammar = local 163 String grammar = local 175 String grammar = local 185 String grammar = local 196 String grammar = local 208 String grammar = local 224 String grammar = local [all...] |
TestRewriteAST.java | 33 import org.antlr.tool.Grammar; 42 String grammar = local 43 "grammar T;\n" + 49 String found = execParser("T.g", grammar, "TParser", "TLexer", 55 String grammar = local 56 "grammar T;\n" + 62 String found = execParser("T.g", grammar, "TParser", "TLexer", 68 String grammar = local 69 "grammar T;\n" + 75 String found = execParser("T.g", grammar, "TParser", "TLexer" 81 String grammar = local 95 String grammar = local 108 String grammar = local 121 String grammar = local 134 String grammar = local 148 String grammar = local 161 String grammar = local 175 String grammar = local 188 String grammar = local 202 String grammar = local 216 String grammar = local 229 String grammar = local 242 String grammar = local 255 String grammar = local 269 String grammar = local 283 String grammar = local 297 String grammar = local 310 String grammar = local 324 String grammar = local 337 String grammar = local 350 String grammar = local 366 String grammar = local 382 String grammar = local 396 String grammar = local 411 String grammar = local 425 String grammar = local 440 String grammar = local 455 String grammar = local 470 String grammar = local 485 String grammar = local 500 String grammar = local 517 String grammar = local 533 String grammar = local 553 String grammar = local 570 String grammar = local 584 String grammar = local 598 String grammar = local 613 String grammar = local 629 String grammar = local 644 String grammar = local 660 String grammar = local 676 String grammar = local 691 String grammar = local 704 String grammar = local 718 String grammar = local 732 String grammar = local 746 String grammar = local 760 String grammar = local 775 String grammar = local 789 String grammar = local 803 String grammar = local 818 String grammar = local 835 String grammar = local 849 String grammar = local 864 String grammar = local 884 String grammar = local 898 String grammar = local 912 String grammar = local 926 String grammar = local 940 String grammar = local 954 String grammar = local 968 String grammar = local 982 String grammar = local 996 String grammar = local 1009 String grammar = local 1027 String grammar = local 1040 String grammar = local 1057 String grammar = local 1076 String grammar = local 1093 String grammar = local 1110 String grammar = local 1127 String grammar = local 1144 String grammar = local 1162 String grammar = local 1190 String grammar = local 1219 String grammar = local 1247 String grammar = local 1275 String grammar = local 1303 String grammar = local 1328 String grammar = local 1344 String grammar = local 1360 String grammar = local 1376 String grammar = local 1391 String grammar = local 1407 String grammar = local 1421 String grammar = local 1440 String grammar = local [all...] |
TestRewriteTemplates.java | 39 String grammar = local 40 "grammar T;\n" + 46 String found = execParser("T.g", grammar, "TParser", "TLexer", 52 String grammar = local 53 "grammar T;\n" + 59 String found = execParser("T.g", grammar, "TParser", "TLexer", 65 String grammar = local 66 "grammar T;\n" + 72 String found = execParser("T.g", grammar, "TParser", "TLexer", 78 String grammar local 93 String grammar = local 108 String grammar = local 121 String grammar = local 136 String grammar = local 151 String grammar = local 165 String grammar = local 179 String grammar = local 197 String grammar = local 217 String grammar = local [all...] |
/external/libpcap/ |
grammar.c | 277 #line 1 "grammar.y" 302 "@(#) $Header: /tcpdump/master/libpcap/grammar.y,v 1.86.2.9 2007/09/12 19:17:25 guy Exp $ (LBL)"; 434 #line 138 "grammar.y" [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
NFA.java | 30 import org.antlr.tool.Grammar; 33 /** An NFA (collection of NFAStates) constructed from a grammar. This 34 * NFA is one big machine for entire grammar. Decision points are recorded 35 * by the Grammar object so we can, for example, convert to DFA or simulate 41 /** This NFA represents which grammar? */ 42 public Grammar grammar; field in class:NFA 49 public NFA(Grammar g) { 50 this.grammar = g; 54 return grammar.composite.getNewNFAStateNumber() [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t057autoAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 115 grammar foo; 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 130 grammar foo; 138 found = self.execParser(grammar,"a", "abc 34" [all...] |
t058rewriteAST.py | 64 def execParser(self, grammar, grammarEntry, input, expectErrors=False): 65 lexerCls, parserCls = self.compileInlineGrammar(grammar) 92 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): 93 lexerCls, parserCls = self.compileInlineGrammar(grammar) 113 grammar = textwrap.dedent( 115 grammar T; 123 found = self.execParser(grammar, "a", "abc 34") 128 grammar = textwrap.dedent( 130 grammar T; 138 found = self.execParser(grammar, "a", "abc" [all...] |
t051treeRewriteAST.py | 29 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input): 30 lexerCls, parserCls = self.compileInlineGrammar(grammar) 50 grammar = textwrap.dedent( 52 grammar T1; 65 tree grammar TP1; 77 grammar, 'a', 86 grammar = textwrap.dedent( 88 grammar T2; 101 tree grammar TP2; 112 grammar, 'a' [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/ |
debug-mode.rb | 39 @socket.readline.strip.start_with?( 'grammar "' ).should == true 66 def parse( grammar, rule, input, options = {} ) 67 @grammar = inline_grammar( grammar ) 68 @grammar.compile( self.class.compile_options ) 69 @grammar_path = File.expand_path( @grammar.path ) 70 for output_file in @grammar.target_files 73 grammar_module = self.class.const_get( @grammar.name ) 91 grammar = %q< 92 grammar BasicParser; // line [all...] |