public abstract class Recognizer extends OutputModelObject
Modifier and Type | Field and Description |
---|---|
SerializedATN |
atn |
String |
grammarFileName |
String |
grammarName |
String[] |
literalNames |
String |
name |
Set<String> |
ruleNames |
Collection<Rule> |
rules |
LinkedHashMap<Rule,RuleSempredFunction> |
sempredFuncs |
ActionChunk |
superClass |
String[] |
symbolicNames |
String[] |
tokenNames
Deprecated.
This field is provided only for compatibility with code
generation targets which have not yet been updated to use
literalNames and symbolicNames . |
Map<String,Integer> |
tokens |
ast, factory
Constructor and Description |
---|
Recognizer(OutputModelFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected static String[] |
translateTokenStringsToTarget(String[] tokenStrings,
CodeGenerator gen) |
protected static String |
translateTokenStringToTarget(String tokenName,
CodeGenerator gen) |
public String name
public String grammarName
public String grammarFileName
@Deprecated public String[] tokenNames
literalNames
and symbolicNames
.public String[] literalNames
public String[] symbolicNames
public Collection<Rule> rules
public ActionChunk superClass
public SerializedATN atn
public LinkedHashMap<Rule,RuleSempredFunction> sempredFuncs
public Recognizer(OutputModelFactory factory)
protected static String[] translateTokenStringsToTarget(String[] tokenStrings, CodeGenerator gen)
protected static String translateTokenStringToTarget(String tokenName, CodeGenerator gen)
Copyright © 1992–2020 ANTLR. All rights reserved.