public class PythonTarget extends Target
targetCharValueEscape| Constructor and Description |
|---|
PythonTarget() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator,
String literal)
Convert from an ANTLR char literal found in a grammar file to
an equivalent char literal in the target language.
|
String |
getTokenTypeAsTargetLabel(CodeGenerator generator,
int ttype)
Target must be able to override the labels used for token types
|
List |
postProcessAction(List chunks,
antlr.Token actionToken)
Give target a chance to do some postprocessing on actions.
|
encodeIntAsCharEscape, genRecognizerFile, genRecognizerHeaderFile, getMaxCharValue, getTarget64BitStringFromValue, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, isValidActionScope, performGrammarAnalysispublic String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)
getTokenTypeAsTargetLabel in class Targetpublic String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)
TargetgetTargetCharLiteralFromANTLRCharLiteral in class Targetpublic List postProcessAction(List chunks, antlr.Token actionToken)
TargetpostProcessAction in class TargetCopyright © 2015. All Rights Reserved.