Home
last modified time | relevance | path

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

/external/antlr/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/runtime/Python3/tests/
Dtestbase.py112 self.grammarType = None
189 self.grammarType = m.group(2) or 'combined'
191 self.assertIn(self.grammarType, ('lexer', 'parser', 'tree', 'combined'))
293 if self.grammarType == 'lexer':
310 if self.grammarType == 'parser':
347 grammarType = m.group(2) or 'combined'
350 self.assertIn(grammarType, ('lexer', 'parser', 'tree', 'combined'))
358 return grammarName, grammarPath, grammarType
374 grammarName, grammarPath, grammarType = self.writeInlineGrammar(grammar)
384 if grammarType == 'combined':
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DSerializedGrammar.java111 char grammarType = (char)in.readByte(); in readFile() local
112 this.type = grammarType; in readFile()
115 System.out.println(grammarType+" grammar "+grammarName); in readFile()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCTarget.java89 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument
90 switch (grammarType) { in isValidActionScope()
DTarget.java127 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument
128 switch (grammarType) { in isValidActionScope()
DCppTarget.java120 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument
121 switch (grammarType) { in isValidActionScope()
DRubyTarget.java435 public boolean isValidActionScope( int grammarType, String scope ) { in isValidActionScope() argument
449 switch ( grammarType ) { in isValidActionScope()
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLR.g270 private int grammarType;
282 return grammarType;
286 grammarType = value;
353 !( grammarType == Grammar.COMBINED &&
443 if ( grammarType == Grammar.LEXER )
470 gr=grammarType gid=id {grammar.setName($gid.text);} SEMI
482 grammarType
483 …: ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure…
485 …| 'parser' gr='grammar' {grammarType=Grammar.PARSER; grammar.type = Grammar.PARSER;} // pure p…
487 …| 'tree' gr='grammar' {grammarType=Grammar.TREE_PARSER; grammar.type = Grammar.TREE_PARSER;} //…
[all …]
DANTLRv3Tree.g43 : ^( grammarType ID DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+ )
46 grammarType
/external/antlr/tool/src/main/java/org/antlr/tool/
DGrammar.java1594 public String getDefaultActionScope(int grammarType) { in getDefaultActionScope() argument
1595 switch (grammarType) { in getDefaultActionScope()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/
DCpp.stg349 /** Symbolic definitions of all the tokens that the <grammarType()> will work with.
458 grammarType() ::= <%
931 /** Return token names used by this <grammarType()>
/external/antlr/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()>