HomeSort by relevance Sort by last modified time
    Searched refs:grammar (Results 26 - 50 of 331) sorted by null

12 3 4 5 6 7 8 91011>>

  /prebuilts/gdb/linux-x86/include/python2.7/
grammar.h 2 /* Grammar interface */
59 /* A grammar */
65 int g_start; /* Start symbol of the grammar */
67 } grammar; typedef in typeref:struct:__anon44805
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/darwin-x86/2.7.5/include/python2.7/
grammar.h 2 /* Grammar interface */
59 /* A grammar */
65 int g_start; /* Start symbol of the grammar */
67 } grammar; typedef in typeref:struct:__anon72921
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/
grammar.h 2 /* Grammar interface */
59 /* A grammar */
65 int g_start; /* Start symbol of the grammar */
67 } grammar; typedef in typeref:struct:__anon73044
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/runtime/Python/tests/
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...]
t053hetero.py 63 def execParser(self, grammar, grammarEntry, input):
64 lexerCls, parserCls = self.compileInlineGrammar(grammar)
78 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input):
79 lexerCls, parserCls = self.compileInlineGrammar(grammar)
101 grammar = textwrap.dedent(
103 grammar T1;
121 grammar, 'a',
129 grammar = textwrap.dedent(
131 grammar T;
142 grammar, 'a'
    [all...]
t049treeparser.py 35 def execTreeParser(self, grammar, grammarEntry, treeGrammar, treeEntry, input):
36 lexerCls, parserCls = self.compileInlineGrammar(grammar)
53 grammar = textwrap.dedent(
54 r'''grammar T;
66 r'''tree grammar TP;
77 grammar, 'a',
87 grammar = textwrap.dedent(
88 r'''grammar T;
100 r'''tree grammar TP;
111 grammar, 'a'
    [all...]
t055templates.py 12 def execParser(self, grammar, grammarEntry, input, group=None):
13 lexerCls, parserCls = self.compileInlineGrammar(grammar)
28 grammar = textwrap.dedent(
29 r'''grammar T;
46 grammar, 'a',
68 grammar = textwrap.dedent(
69 r'''grammar T2;
86 grammar, 'a',
95 grammar = textwrap.dedent(
96 r'''grammar T
    [all...]
t056lexer.py 14 def execParser(self, grammar, grammarEntry, input):
15 lexerCls, parserCls = self.compileInlineGrammar(grammar)
28 grammar = textwrap.dedent(
30 grammar P;
41 grammar, 'a',
t059debug.py 49 assert l.startswith('grammar "')
74 def execParser(self, grammar, grammarEntry, input, listener,
87 grammar, options='-debug')
101 grammar = textwrap.dedent(
103 grammar T;
115 grammar, 'a',
138 grammar = textwrap.dedent(
140 grammar T;
150 grammar, 'a',
173 grammar = textwrap.dedent
    [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...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
NFAConversionThread.java 32 import org.antlr.tool.Grammar;
36 Grammar grammar; field in class:NFAConversionThread
39 public NFAConversionThread(Grammar grammar,
44 this.grammar = grammar;
51 NFAState decisionStartState = grammar.getDecisionNFAStartState(decision);
53 grammar.createLookaheadDFA(decision,true);
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
JavaTarget.java 31 import org.antlr.tool.Grammar;
40 Grammar grammar,
48 protected void performGrammarAnalysis(CodeGenerator generator, Grammar grammar) {
49 super.performGrammarAnalysis(generator, grammar);
50 for (Rule rule : grammar.getRules()) {
53 Set<Rule> delegatedRules = grammar.getDelegatedRules();
ObjCTarget.java 34 import org.antlr.tool.Grammar;
41 Grammar grammar,
46 generator.write(headerFileST, grammar.name + Grammar.grammarTypeToFileNameSuffix[grammar.type] + extName);
64 /** Convert from an ANTLR string literal found in a grammar file to
83 String name = generator.grammar.getTokenDisplayName(ttype);
89 //return generator.grammar.name + Grammar.grammarTypeToFileNameSuffix[generator.grammar.type] + "_" + name
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
functional.rb 6 require 'antlr3/test/grammar'
49 def import_grammar_targets( grammar )
50 for file in grammar.target_files
70 Grammar.global_dependency( ANTLR_JAR )
98 # An index of grammar file objects created in the test class
112 grammar = Grammar.new( path, :output_directory => output_directory )
113 register_grammar( grammar )
114 return grammar
119 grammar = Grammar.inline source
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
NameSpaceChecker.java 38 protected Grammar grammar; field in class:NameSpaceChecker
40 public NameSpaceChecker(Grammar grammar) {
41 this.grammar = grammar;
45 for (int i = CompositeGrammar.MIN_RULE_INDEX; i < grammar.composite.ruleIndexToRuleList.size(); i++) {
46 Rule r = grammar.composite.ruleIndexToRuleList.elementAt(i);
54 Grammar.LabelElementPair pair = (Grammar.LabelElementPair) it.next()
    [all...]
CompositeGrammarTree.java 36 public Grammar grammar; field in class:CompositeGrammarTree
41 public CompositeGrammarTree(Grammar g) {
42 grammar = g;
57 /** Find a rule by looking in current grammar then down towards the
61 Rule r = grammar.getLocallyDefinedRule(ruleName);
69 /** Find an option by looking up towards the root grammar rather than down */
71 if ( grammar.tool!=null && key!=null && key.equals("language") &&
72 grammar.tool.forcedLanguageOption!=null ) {
73 return grammar.tool.forcedLanguageOption
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
Dbg.stg 44 <if(grammar.grammarIsRoot)>
48 "invalidRule", <grammar.allImportedRules:{rST | "<rST.name>"}; wrap="\n ", separator=", ">
51 <if(grammar.grammarIsRoot)><! grammar imports other grammar(s) !>
62 <else><! imported grammar !>
63 public int RuleLevel { get { return <grammar.delegators:{g| <g:delegateName()>}>.RuleLevel; } }
64 public void IncRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.IncRuleLevel(); }
65 public void DecRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.DecRuleLevel(); }
72 ((Profiler)dbg).ExamineRuleMemoization(input, ruleIndex, stopIndex, <grammar.composite.rootGrammar.recognizerName>.ruleNames[ruleIndex])
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
Dbg.stg 43 <if(grammar.grammarIsRoot)>
47 "invalidRule", <grammar.allImportedRules:{rST | "<rST.name>"}; wrap="\n ", separator=", ">
50 <if(grammar.grammarIsRoot)><! grammar imports other grammar(s) !>
61 <else><! imported grammar !>
62 public int RuleLevel { get { return <grammar.delegators:{g| <g:delegateName()>}>.RuleLevel; } }
63 public void IncRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.IncRuleLevel(); }
64 public void DecRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.DecRuleLevel(); }
71 ((Profiler)dbg).ExamineRuleMemoization(input, ruleIndex, stopIndex, <grammar.composite.rootGrammar.recognizerName>.ruleNames[ruleIndex])
    [all...]
  /external/libpcap/
grammar.c 73 #line 1 "grammar.y" /* yacc.c:339 */
610 #line 256 "grammar.y" /* yacc.c:355 */
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
tree-rewrite.rb 9 grammar FlatList;
21 tree grammar FlatListWalker;
33 grammar SimpleTree;
45 tree grammar SimpleTreeWalker;
56 grammar CombinedRewriteAndAuto;
68 tree grammar CombinedRewriteAndAutoTree;
79 grammar AvoidDup;
91 tree grammar AvoidDupWalker;
102 grammar Loop;
114 tree grammar LoopWalker
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
TreeToNFAConverter.g 6 Grammar conversion to ANTLR v3:
33 /** Build an NFA from a tree representing an ANTLR grammar. */
34 tree grammar TreeToNFAConverter;
42 package org.antlr.grammar.v3;
59 /** Which grammar are we converting an NFA for? */
60 protected Grammar grammar = null;
69 public TreeToNFAConverter(TreeNodeStream input, Grammar g, NFA nfa, NFAFactory factory) {
71 this.grammar = g;
77 TreeToNFAConverter other = new TreeToNFAConverter( new CommonTreeNodeStream( t ), grammar, nfa, factory )
    [all...]
ActionAnalysis.g 36 lexer grammar ActionAnalysis;
42 package org.antlr.grammar.v3;
49 Grammar grammar;
53 public ActionAnalysis(Grammar grammar, String ruleName, GrammarAST actionAST)
56 this.grammar = grammar;
57 this.enclosingRule = grammar.getLocallyDefinedRule(ruleName);
85 Grammar.LabelElementPair pair = enclosingRule.getRuleLabel($x.text)
    [all...]
DefineGrammarItemsWalker.g 6 Grammar conversion to ANTLR v3:
32 tree grammar DefineGrammarItemsWalker;
44 package org.antlr.grammar.v3;
51 protected Grammar grammar;
75 if ( grammar.type != Grammar.COMBINED ) {
78 // form is (header ... ) ( grammar ID (scope ...) ... ( rule ... ) ( rule ... ) ... )
80 // find the grammar spec
81 while ( !p.getText().equals( "grammar" ) ) {
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
Dbg.stg 35 <if(grammar.grammarIsRoot)>
39 "invalidRule", <grammar.allImportedRules:{rST | "<rST.name>"}; wrap="\n ", separator=", ">
42 <if(grammar.grammarIsRoot)> <! grammar imports other grammar(s) !>
56 <else> <! imported grammar !>
60 return <grammar.delegators:{g| <g:delegateName()>}>->getRuleLevel();
64 <grammar.delegators:{g| <g:delegateName()>}>->incRuleLevel();
69 <grammar.delegators:{g| <g:delegateName()>}>.decRuleLevel();
76 <if(grammar.grammarIsRoot)
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/
Dbg.stg 38 <if(grammar.grammarIsRoot)>
40 "invalidRule", <grammar.allImportedRules:{rST | "<rST.name>"}; wrap="\n ", separator=", ">
45 <grammar.decisions:{d | <d.dfa.hasSynPred; null="false">}; wrap="\n ", separator=", ">
47 <if(grammar.grammarIsRoot)> <! grammar imports other grammar(s) !>
58 <else> <! imported grammar !>
59 public int getRuleLevel() { return <grammar.delegators:{g| <g:delegateName()>}>.getRuleLevel(); }
60 public void incRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.incRuleLevel(); }
61 public void decRuleLevel() { <grammar.delegators:{g| <g:delegateName()>}>.decRuleLevel();
    [all...]

Completed in 2935 milliseconds

12 3 4 5 6 7 8 91011>>