Searched refs:grammarType (Results 1 – 9 of 9) sorted by relevance
114 self.grammarType = None202 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.grammarType314 if self.grammarType == 'lexer':331 if self.grammarType == 'parser':368 grammarType = m.group(2)369 if grammarType is None:[all …]
102 char grammarType = (char)in.readByte(); in readFile() local103 this.type = grammarType; in readFile()106 System.out.println(grammarType+" grammar "+grammarName); in readFile()
254 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);} SEMI466 grammarType467 …: ( '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 …]
42 : ^( grammarType ID DOC_COMMENT? optionsSpec? tokensSpec? attrScope* action* rule+ )45 grammarType
88 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument89 switch (grammarType) { in isValidActionScope()
123 public boolean isValidActionScope(int grammarType, String scope) { in isValidActionScope() argument124 switch (grammarType) { in isValidActionScope()
429 public boolean isValidActionScope( int grammarType, String scope ) { in isValidActionScope() argument443 switch ( grammarType ) { in isValidActionScope()
1553 public String getDefaultActionScope(int grammarType) { in getDefaultActionScope() argument1554 switch (grammarType) { in getDefaultActionScope()
759 /** Symbolic definitions of all the tokens that the <grammarType()> will work with.810 grammarType() ::= <<1409 /** Return token names used by this <grammarType()>