Home
last modified time | relevance | path

Searched refs:grammarType (Results 1 – 9 of 9) sorted by relevance

/external/antlr/antlr-3.4/runtime/Python/tests/
Dtestbase.py114 self.grammarType = None
202 self.grammarType = m.group(2)
203 if self.grammarType is None:
204 self.grammarType = 'combined'
206 if self.grammarType is None:
207 assert self.grammarType in ('lexer', 'parser', 'tree', 'combined'), self.grammarType
314 if self.grammarType == 'lexer':
331 if self.grammarType == 'parser':
368 grammarType = m.group(2)
369 if grammarType is None:
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DSerializedGrammar.java102 char grammarType = (char)in.readByte(); in readFile() local
103 this.type = grammarType; in readFile()
106 System.out.println(grammarType+" grammar "+grammarName); in readFile()
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLR.g254 private int grammarType;
266 return grammarType;
270 grammarType = value;
337 !( grammarType == Grammar.COMBINED &&
427 if ( grammarType == Grammar.LEXER )
454 gr=grammarType gid=id {grammar.setName($gid.text);} SEMI
466 grammarType
467 …: ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure…
469 …| 'parser' gr='grammar' {grammarType=Grammar.PARSER; grammar.type = Grammar.PARSER;} // pure p…
471 …| 'tree' gr='grammar' {grammarType=Grammar.TREE_PARSER; grammar.type = Grammar.TREE_PARSER;} //…
[all …]
DANTLRv3Tree.g42 : ^( grammarType ID DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+ )
45 grammarType
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DCTarget.java88 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument
89 switch (grammarType) { in isValidActionScope()
DTarget.java123 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument
124 switch (grammarType) { in isValidActionScope()
DRubyTarget.java429 public boolean isValidActionScope( int grammarType, String scope ) { in isValidActionScope() argument
443 switch ( grammarType ) { in isValidActionScope()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammar.java1553 public String getDefaultActionScope(int grammarType) { in getDefaultActionScope() argument
1554 switch (grammarType) { in getDefaultActionScope()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg759 /** Symbolic definitions of all the tokens that the <grammarType()> will work with.
810 grammarType() ::= <<
1409 /** Return token names used by this <grammarType()>