public class Python2Target extends Target
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Python2Target
|
| 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 |
python2Keywords
|
targetCharValueEscape| Constructor and Description |
|---|
Python2Target(CodeGenerator
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBadWords()
|
Set |
getBadWords()
|
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, getSerializedATNSegmentLimit, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, getTemplates, getTokenTypeAsTargetLabel, getTokenTypesAsTargetLabels, grammarSymbolCausesIssueInGeneratedCode, templatesExistprotected static final String[] python2Keywords
public Python2Target(CodeGeneratorgen)
protected boolean visibleGrammarSymbolCausesIssueInGeneratedCode(GrammarASTidNode)
protected STGroup loadTemplates()
public boolean wantsBaseListener()
public boolean wantsBaseVisitor()
public boolean supportsOverloadedMethods()
public StringgetVersion()
Target
protected void addBadWords()