public abstract class Recognizer extends OutputModelObject
Modifier and Type | Field and Description |
---|---|
String |
accessLevel |
SerializedATN |
atn |
String |
grammarFileName |
String |
grammarName |
List<String> |
literalNames |
String |
name |
Set<String> |
ruleNames |
Collection<Rule> |
rules |
LinkedHashMap<Rule,RuleSempredFunction> |
sempredFuncs |
ActionChunk |
superClass |
List<String> |
symbolicNames |
List<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 List<String> |
translateTokenStringsToTarget(String[] tokenStrings,
CodeGenerator gen) |
protected static String |
translateTokenStringToTarget(String tokenName,
CodeGenerator gen) |
public String name
public String grammarName
public String grammarFileName
public String accessLevel
@Deprecated public List<String> tokenNames
literalNames
and symbolicNames
.public Collection<Rule> rules
public ActionChunk superClass
public SerializedATN atn
public LinkedHashMap<Rule,RuleSempredFunction> sempredFuncs
public Recognizer(OutputModelFactory factory)
protected static List<String> translateTokenStringsToTarget(String[] tokenStrings, CodeGenerator gen)
protected static String translateTokenStringToTarget(String tokenName, CodeGenerator gen)
Copyright © 1992–2020 ANTLR. All rights reserved.