HomeSort by relevance Sort by last modified time
    Searched refs:grammar (Results 101 - 125 of 450) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/python/cpython2/Parser/
acceler.c 14 #include "grammar.h"
20 static void fixdfa(grammar *, dfa *);
21 static void fixstate(grammar *, state *);
24 PyGrammar_AddAccelerators(grammar *g)
35 PyGrammar_RemoveAccelerators(grammar *g)
54 fixdfa(grammar *g, dfa *d)
64 fixstate(grammar *g, state *s)
printgrammar.c 2 /* Print a bunch of C initializers that represent a grammar */
5 #include "grammar.h"
9 static void printstates(grammar *, FILE *);
10 static void printdfas(grammar *, FILE *);
11 static void printlabels(grammar *, FILE *);
14 printgrammar(grammar *g, FILE *fp)
18 fprintf(fp, "#include \"grammar.h\"\n");
19 fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
22 fprintf(fp, "grammar _PyParser_Grammar = {\n");
31 printnonterminals(grammar *g, FILE *fp
    [all...]
metagrammar.c 4 #include "grammar.h"
142 static grammar _PyParser_Grammar = {
149 grammar *
155 grammar *
  /external/python/cpython3/Parser/
acceler.c 14 #include "grammar.h"
20 static void fixdfa(grammar *, dfa *);
21 static void fixstate(grammar *, state *);
24 PyGrammar_AddAccelerators(grammar *g)
35 PyGrammar_RemoveAccelerators(grammar *g)
54 fixdfa(grammar *g, dfa *d)
64 fixstate(grammar *g, state *s)
printgrammar.c 2 /* Print a bunch of C initializers that represent a grammar */
7 #include "grammar.h"
11 static void printstates(grammar *, FILE *);
12 static void printdfas(grammar *, FILE *);
13 static void printlabels(grammar *, FILE *);
16 printgrammar(grammar *g, FILE *fp)
20 fprintf(fp, "#include \"grammar.h\"\n");
21 fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
24 fprintf(fp, "grammar _PyParser_Grammar = {\n");
33 printnonterminals(grammar *g, FILE *fp
    [all...]
metagrammar.c 4 #include "grammar.h"
142 static grammar _PyParser_Grammar = {
149 grammar *
155 grammar *
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/
template-output.rb 8 def parse( grammar, input, options = nil )
9 @grammar = inline_grammar( grammar )
10 compile_and_load( @grammar )
11 grammar_module = self.class.const_get( @grammar.name )
35 grammar InlineTemplates;
62 grammar ExternalTemplate;
83 grammar EmptyTemplate;
102 grammar List;
123 grammar Action
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
printgrammar.c 2 /* Print a bunch of C initializers that represent a grammar */
5 #include "grammar.h"
9 static void printstates(grammar *, FILE *);
10 static void printdfas(grammar *, FILE *);
11 static void printlabels(grammar *, FILE *);
14 printgrammar(grammar *g, FILE *fp)
18 fprintf(fp, "#include \"grammar.h\"\n");
19 fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
22 fprintf(fp, "grammar _PyParser_Grammar = {\n");
31 printnonterminals(grammar *g, FILE *fp)
    [all...]
metagrammar.c 4 #include "grammar.h"
142 static grammar _PyParser_Grammar = {
149 grammar *
155 grammar *
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
FastSimpleExpression.g3 33 grammar FastSimpleExpression;
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/
nuances.rb 8 lexer grammar Bug80;
32 lexer grammar EndOfFile;
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
CSharp3Target.java 36 import org.antlr.tool.Grammar;
82 protected void genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, ST outputFileST) throws IOException
84 if (!grammar.getGrammarIsRoot())
86 Grammar rootGrammar = grammar.composite.getRootGrammar();
87 String actionScope = grammar.getDefaultActionScope(grammar.type);
92 actions = grammar.getActions().get(actionScope);
96 grammar.getActions().put(actionScope, actions)
    [all...]
PythonTarget.java 39 import org.antlr.tool.Grammar;
54 String name = generator.grammar.getTokenDisplayName(ttype);
67 int c = Grammar.getCharValueFromGrammarCharLiteral(literal);
  /external/python/cpython2/Lib/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /external/python/cpython3/Lib/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.items():
  /prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/
pygram.py 4 """Export the Python grammar and symbols."""
14 # The grammar file
15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
22 def __init__(self, grammar):
25 Creates an attribute for each grammar symbol (nonterminal),
28 for name, symbol in grammar.symbol2number.iteritems():
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
ASTDbg.stg 36 <if(grammar.grammarIsRoot)>
41 <grammar.directDelegates:{g|<g:delegateName()>.setTreeAdaptor(self._adaptor)}>
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
metagrammar.c 4 #include "grammar.h"
142 static grammar _PyParser_Grammar = {
149 grammar *
155 grammar *
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
hetero-nodes.rb 10 grammar VToken;
29 grammar TokenWithQualifiedType;
48 grammar TokenWithLabel;
67 grammar TokenWithListLabel;
86 grammar TokenRoot;
106 grammar TokenRootWithListLabel;
126 grammar FromString;
146 grammar StringRoot;
166 grammar RewriteToken;
186 grammar RewriteTokenWithArgs
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
task.rb 14 A rake task-generating utility concerning ANTLR grammar file
163 for grammar in @grammars
165 if vocab = grammar.token_vocab and
166 tfile = find_tokens_file( vocab, grammar )
170 grammar.define_tasks( deps )
175 for grammar in @grammars
176 grammar.clean
183 def find_tokens_file( vocab, grammar )
188 | unable to locate .tokens file `#{ vocab }' referenced in #{ grammar.path }
201 def compile( grammar )
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
LL1Analyzer.java 30 import org.antlr.grammar.v3.ANTLRParser;
33 import org.antlr.tool.Grammar;
56 public Grammar grammar; field in class:LL1Analyzer
64 public LL1Analyzer(Grammar grammar) {
65 this.grammar = grammar;
86 // walk every rule in this grammar and compare FIRST set with
93 Grammar g = delegates.get(i)
    [all...]

Completed in 695 milliseconds

1 2 3 45 6 7 8 91011>>