public class Python3Target extends Target
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Python3Target
|
| Modifier and Type | Field and Description |
|---|---|
protected Set |
badWords
Avoid grammar symbols in this set to prevent conflicts in gen'd code.
|
protected static String |
python3Keywords
|
targetCharValueEscape| Constructor and Description |
|---|
Python3Target(CodeGenerator
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBadWords()
|
Set |
getBadWords()
|
int |
getSerializedATNSegmentLimit()
Gets the maximum number of 16-bit unsigned integers that can be encoded in a single segment of the serialized ATN.
|
String |
getVersion()
ANTLR tool should check output templates / target are compatible with tool code generation.
|
protected STGroup |
loadTemplates()
|
boolean |
supportsOverloadedMethods()
|
protected boolean |
visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST
|
boolean |
wantsBaseListener()
|
boolean |
wantsBaseVisitor()
|
encodeIntAsCharEscape, genFile, genListenerFile, genRecognizerHeaderFile, getAltLabelContextStructName, getCodeGenerator, getElementListName, getElementName, getImplicitRuleLabel, getImplicitSetLabel, getImplicitTokenLabel, getInlineTestSetWordSize, getLanguage, getListLabel, getLoopCounter, getLoopLabel, getRuleFunctionContextStructName, getRuleFunctionContextStructName, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, getTemplates, getTokenTypeAsTargetLabel, getTokenTypesAsTargetLabels, grammarSymbolCausesIssueInGeneratedCode, templatesExistprotected static final String[] python3Keywords
public Python3Target(CodeGeneratorgen)
public int getSerializedATNSegmentLimit()
Target
getSerializedATNSegmentLimit in class
Target
SerializedATN.getSegments()
protected boolean visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarASTidNode)
protected STGroup loadTemplates()
public boolean wantsBaseListener()
public boolean wantsBaseVisitor()
public boolean supportsOverloadedMethods()
public StringgetVersion()
Target
protected void addBadWords()