/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
H A D | pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
H A D | 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,
|
H A D | grammar.h | 59 /* A grammar */ 65 int g_start; /* Start symbol of the grammar */ 67 } grammar; typedef in typeref:struct:__anon69548 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); 85 void PyGrammar_RemoveAccelerators(grammar *); [all...] |
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
H A D | pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
H A D | 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,
|
H A D | grammar.h | 59 /* A grammar */ 65 int g_start; /* Start symbol of the grammar */ 67 } grammar; typedef in typeref:struct:__anon69671 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); 85 void PyGrammar_RemoveAccelerators(grammar *); [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/pgen2/ |
H A D | parse.py | 4 """Parser engine for the grammar tables generated by pgen. 6 The grammar table must be loaded first. 32 p = Parser(grammar, [converter]) # create instance 57 def __init__(self, grammar, convert=None): 60 The grammar argument is a grammar.Grammar instance; see the 61 grammar module for more information. 70 two arguments, the first being the grammar (a grammar.Grammar 86 self.grammar [all...] |
H A D | driver.py | 26 from . import grammar, parse, token, tokenize, pgen namespace 31 def __init__(self, grammar, convert=None, logger=None): 32 self.grammar = grammar 41 p = parse.Parser(self.grammar, self.convert) 67 type = grammar.opmap[value] 111 """Load the grammar (maybe from a pickle).""" 120 logger.info("Generating grammar tables from %s", gt) 123 logger.info("Writing grammar tables to %s", gp) 129 g = grammar [all...] |
H A D | pgen.py | 5 from . import grammar, token, tokenize namespace 7 class PgenGrammar(grammar.Grammar): 99 itoken = grammar.opmap[value] # Fails if unknown token
|
H A D | conv.py | 7 parser from a grammar file in Python's grammar notation. But I don't 19 On the other hand, symbol numbers (representing the grammar's 20 non-terminals) are assigned by pgen based on the actual grammar 24 equivalent grammar tables directly from the Grammar.txt input file 33 from pgen2 import grammar, token namespace 36 class Converter(grammar.Grammar): 48 """Load the grammar tables from the text files written by pgen.""" 57 nonterminals of the grammar as numbers. We build two tables 90 #include "grammar [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/pgen2/ |
H A D | parse.py | 4 """Parser engine for the grammar tables generated by pgen. 6 The grammar table must be loaded first. 32 p = Parser(grammar, [converter]) # create instance 57 def __init__(self, grammar, convert=None): 60 The grammar argument is a grammar.Grammar instance; see the 61 grammar module for more information. 70 two arguments, the first being the grammar (a grammar.Grammar 86 self.grammar [all...] |
H A D | driver.py | 26 from . import grammar, parse, token, tokenize, pgen namespace 31 def __init__(self, grammar, convert=None, logger=None): 32 self.grammar = grammar 41 p = parse.Parser(self.grammar, self.convert) 67 type = grammar.opmap[value] 111 """Load the grammar (maybe from a pickle).""" 120 logger.info("Generating grammar tables from %s", gt) 123 logger.info("Writing grammar tables to %s", gp) 129 g = grammar [all...] |
H A D | pgen.py | 5 from . import grammar, token, tokenize namespace 7 class PgenGrammar(grammar.Grammar): 99 itoken = grammar.opmap[value] # Fails if unknown token
|
H A D | conv.py | 7 parser from a grammar file in Python's grammar notation. But I don't 19 On the other hand, symbol numbers (representing the grammar's 20 non-terminals) are assigned by pgen based on the actual grammar 24 equivalent grammar tables directly from the Grammar.txt input file 33 from pgen2 import grammar, token namespace 36 class Converter(grammar.Grammar): 48 """Load the grammar tables from the text files written by pgen.""" 57 nonterminals of the grammar as numbers. We build two tables 90 #include "grammar [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
H A D | pygram.py | 4 """Export the Python grammar and symbols.""" 14 # The grammar file 22 def __init__(self, grammar): 25 Creates an attribute for each grammar symbol (nonterminal), 28 for name, symbol in grammar.symbol2number.iteritems():
|
H A D | patcomp.py | 18 from .pgen2 import driver, literals, token, tokenize, parse, grammar namespace 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 50 self.grammar = driver.load_grammar(grammar_file) 51 self.syms = pygram.Symbols(self.grammar) 54 self.driver = driver.Driver(self.grammar, convert=pattern_convert) 189 elif value in grammar.opmap: 190 return grammar.opmap[value] 195 def pattern_convert(grammar, raw_node_info): 198 if children or type in grammar [all...] |
H A D | btm_utils.py | 4 from .pgen2 import grammar, token namespace 9 tokens = grammar.opmap
|
H A D | refactor.py | 196 self.grammar = pygram.python_grammar_no_print_statement 198 self.grammar = pygram.python_grammar 207 self.driver = driver.Driver(self.grammar, 375 self.driver.grammar = pygram.python_grammar_no_print_statement 383 self.driver.grammar = self.grammar
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
H A D | pygram.py | 4 """Export the Python grammar and symbols.""" 14 # The grammar file 22 def __init__(self, grammar): 25 Creates an attribute for each grammar symbol (nonterminal), 28 for name, symbol in grammar.symbol2number.iteritems():
|
H A D | patcomp.py | 18 from .pgen2 import driver, literals, token, tokenize, parse, grammar namespace 24 # The pattern grammar file 48 Takes an optional alternative filename for the pattern grammar. 50 self.grammar = driver.load_grammar(grammar_file) 51 self.syms = pygram.Symbols(self.grammar) 54 self.driver = driver.Driver(self.grammar, convert=pattern_convert) 189 elif value in grammar.opmap: 190 return grammar.opmap[value] 195 def pattern_convert(grammar, raw_node_info): 198 if children or type in grammar [all...] |
H A D | btm_utils.py | 4 from .pgen2 import grammar, token namespace 9 tokens = grammar.opmap
|
H A D | refactor.py | 196 self.grammar = pygram.python_grammar_no_print_statement 198 self.grammar = pygram.python_grammar 207 self.driver = driver.Driver(self.grammar, 375 self.driver.grammar = pygram.python_grammar_no_print_statement 383 self.driver.grammar = self.grammar
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/ |
H A D | support.py | 19 grammar = driver.load_grammar(grammar_path) variable 20 driver = driver.Driver(grammar, convert=pytree.convert)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/ |
H A D | support.py | 19 grammar = driver.load_grammar(grammar_path) variable 20 driver = driver.Driver(grammar, convert=pytree.convert)
|
/prebuilts/misc/common/antlr/ |
H A D | antlr-3.4-complete.jar | ... codegen/templates/Ruby/ org/antlr/codegen/templates/Scala/ org/antlr/grammar/ org/antlr/grammar/v3/ org/antlr/misc/ org/antlr/tool ... |