public class Python3Target extends Target
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Python3Target.PythonStringRenderer |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
badWords
Avoid grammar symbols in this set to prevent conflicts in gen'd code.
|
protected static java.lang.String[] |
python3Keywords |
targetCharValueEscape| Constructor and Description |
|---|
Python3Target(CodeGenerator gen) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBadWords() |
java.util.Set<java.lang.String> |
getBadWords() |
int |
getSerializedATNSegmentLimit()
Gets the maximum number of 16-bit unsigned integers that can be encoded
in a single segment of the serialized ATN.
|
java.lang.String |
getVersion()
ANTLR tool should check output templates / target are compatible with tool code generation.
|
protected org.stringtemplate.v4.STGroup |
loadTemplates() |
boolean |
supportsOverloadedMethods() |
protected boolean |
visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode) |
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 java.lang.String[] python3Keywords
protected final java.util.Set<java.lang.String> badWords
public Python3Target(CodeGenerator gen)
public int getSerializedATNSegmentLimit()
TargetgetSerializedATNSegmentLimit in class TargetSerializedATN.getSegments()protected boolean visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarAST idNode)
visibleGrammarSymbolCausesIssueInGeneratedCode in class Targetprotected org.stringtemplate.v4.STGroup loadTemplates()
loadTemplates in class Targetpublic boolean wantsBaseListener()
wantsBaseListener in class Targetpublic boolean wantsBaseVisitor()
wantsBaseVisitor in class Targetpublic boolean supportsOverloadedMethods()
supportsOverloadedMethods in class Targetpublic java.lang.String getVersion()
TargetgetVersion in class Targetpublic java.util.Set<java.lang.String> getBadWords()
protected void addBadWords()