/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | grammar.h | 67 } grammar; typedef 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 *); 87 void printgrammar(grammar *g, FILE *fp); 88 void printnonterminals(grammar *g, FILE *fp);
|
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,
|
D | pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | grammar.h | 67 } grammar; typedef 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 *); 87 void printgrammar(grammar *g, FILE *fp); 88 void printnonterminals(grammar *g, FILE *fp);
|
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,
|
D | pgen.h | 10 extern grammar *meta_grammar(void); 13 extern grammar *pgen(struct _node *);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | parse.py | 57 def __init__(self, grammar, convert=None): argument 86 self.grammar = grammar 87 self.convert = convert or (lambda grammar, node: node) 103 start = self.grammar.start 108 stackentry = (self.grammar.dfas[start], 0, newnode) 124 t, v = self.grammar.labels[i] 143 itsdfa = self.grammar.dfas[t] 147 self.push(t, self.grammar.dfas[t], newstate, context) 167 ilabel = self.grammar.keywords.get(value) 170 ilabel = self.grammar.tokens.get(type) [all …]
|
D | driver.py | 26 from . import grammar, parse, token, tokenize, pgen 31 def __init__(self, grammar, convert=None, logger=None): argument 32 self.grammar = grammar 41 p = parse.Parser(self.grammar, self.convert) 67 type = grammar.opmap[value] 129 g = grammar.Grammar()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
D | printgrammar.c | 9 static void printstates(grammar *, FILE *); 10 static void printdfas(grammar *, FILE *); 11 static void printlabels(grammar *, FILE *); 14 printgrammar(grammar *g, FILE *fp) in printgrammar() 31 printnonterminals(grammar *g, FILE *fp) in printnonterminals() 62 printstates(grammar *g, FILE *fp) in printstates() 82 printdfas(grammar *g, FILE *fp) in printdfas() 102 printlabels(grammar *g, FILE *fp) in printlabels()
|
D | parser.h | 26 grammar *p_grammar; /* Grammar to use */ 33 parser_state *PyParser_New(grammar *g, int start); 37 void PyGrammar_AddAccelerators(grammar *g);
|
D | acceler.c | 20 static void fixdfa(grammar *, dfa *); 21 static void fixstate(grammar *, state *); 24 PyGrammar_AddAccelerators(grammar *g) in PyGrammar_AddAccelerators() 35 PyGrammar_RemoveAccelerators(grammar *g) in PyGrammar_RemoveAccelerators() 54 fixdfa(grammar *g, dfa *d) in fixdfa() 64 fixstate(grammar *g, state *s) in fixstate()
|
D | parsetok.c | 26 static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *); 31 PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret) in PyParser_ParseString() 37 PyParser_ParseStringFlags(const char *s, grammar *g, int start, in PyParser_ParseStringFlags() 46 grammar *g, int start, in PyParser_ParseStringFlagsFilename() 56 grammar *g, int start, in PyParser_ParseStringFlagsFilenameEx() 81 PyParser_ParseFile(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFile() 89 PyParser_ParseFileFlags(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFileFlags() 97 PyParser_ParseFileFlagsEx(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFileFlagsEx() 138 parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, in parsetok()
|
D | metagrammar.c | 142 static grammar _PyParser_Grammar = { 149 grammar * 155 grammar *
|
D | grammar.c | 18 grammar * 21 grammar *g; in newgrammar() 23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar() 36 adddfa(grammar *g, int type, char *name) in adddfa() 133 static void translabel(grammar *, label *); 136 translatelabels(grammar *g) in translatelabels() 149 translabel(grammar *g, label *lb) in translabel()
|
D | pgenmain.c | 28 grammar *getgrammar(char *filename); 39 grammar *g; in main() 74 grammar * 79 grammar *g0, *g; in getgrammar()
|
D | firstsets.c | 11 static void calcfirstset(grammar *, dfa *); 14 addfirstsets(grammar *g) in addfirstsets() 29 calcfirstset(grammar *g, dfa *d) in calcfirstset()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/ |
D | parser.h | 26 grammar *p_grammar; /* Grammar to use */ 33 parser_state *PyParser_New(grammar *g, int start); 37 void PyGrammar_AddAccelerators(grammar *g);
|
D | acceler.c | 20 static void fixdfa(grammar *, dfa *); 21 static void fixstate(grammar *, state *); 24 PyGrammar_AddAccelerators(grammar *g) in PyGrammar_AddAccelerators() 35 PyGrammar_RemoveAccelerators(grammar *g) in PyGrammar_RemoveAccelerators() 54 fixdfa(grammar *g, dfa *d) in fixdfa() 64 fixstate(grammar *g, state *s) in fixstate()
|
D | parsetok.c | 17 static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *); 22 PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret) in PyParser_ParseString() 28 PyParser_ParseStringFlags(const char *s, grammar *g, int start, in PyParser_ParseStringFlags() 37 grammar *g, int start, in PyParser_ParseStringFlagsFilename() 47 grammar *g, int start, in PyParser_ParseStringFlagsFilenameEx() 72 PyParser_ParseFile(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFile() 80 PyParser_ParseFileFlags(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFileFlags() 88 PyParser_ParseFileFlagsEx(FILE *fp, const char *filename, grammar *g, int start, in PyParser_ParseFileFlagsEx() 129 parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, in parsetok()
|
D | metagrammar.c | 142 static grammar _PyParser_Grammar = { 149 grammar * 155 grammar *
|
D | grammar.c | 18 grammar * 21 grammar *g; in newgrammar() 23 g = (grammar *)PyObject_MALLOC(sizeof(grammar)); in newgrammar() 36 adddfa(grammar *g, int type, char *name) in adddfa() 133 static void translabel(grammar *, label *); 136 translatelabels(grammar *g) in translatelabels() 149 translabel(grammar *g, label *lb) in translabel()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
D | patcomp.py | 18 from .pgen2 import driver, literals, token, tokenize, parse, 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): argument 198 if children or type in grammar.number2symbol:
|
D | pygram.py | 22 def __init__(self, grammar): argument 28 for name, symbol in grammar.symbol2number.iteritems():
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/data/ |
D | README | 2 - py2_test_grammar.py -- test file that exercises most/all of Python 2.x's grammar. 3 - py3_test_grammar.py -- test file that exercises most/all of Python 3.x's grammar.
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/ |
D | antlr1.txt | 15 _A_n_t_l_r converts an extended form of context-free grammar into 40 ability to spread one grammar over multiple files or even 42 a version of the grammar with actions stripped out (for 96 only perform analysis on the grammar. 103 * pointing to a C-style string which is the grammar 122 -gl Generate line info about grammar actions in C parser of 125 into the grammar file not the resulting C file. 127 through the grammar not C file. 150 -p The complete grammar, collected from all input grammar 153 in viewing the entire grammar as a whole and to elim- [all …]
|