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, performGrammarAnalysis
public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)
getTokenTypeAsTargetLabel
in class Target
public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)
Target
getTargetCharLiteralFromANTLRCharLiteral
in class Target
public List postProcessAction(List chunks, antlr.Token actionToken)
Target
postProcessAction
in class Target
Copyright © 2020. All rights reserved.