public class Python3Target extends Target
targetCharValueEscape
Constructor and Description |
---|
Python3Target() |
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<Object> |
postProcessAction(List<Object> chunks,
Token actionToken)
Give target a chance to do some postprocessing on actions.
|
boolean |
useBaseTemplatesForSynPredFragments() |
encodeIntAsCharEscape, genRecognizerFile, genRecognizerHeaderFile, getMaxCharValue, getTarget64BitStringFromValue, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, isValidActionScope, performGrammarAnalysis
public boolean useBaseTemplatesForSynPredFragments()
useBaseTemplatesForSynPredFragments
in class Target
public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)
getTokenTypeAsTargetLabel
in class Target
public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)
Target
getTargetCharLiteralFromANTLRCharLiteral
in class Target
Copyright © 1992–2015 ANTLR. All rights reserved.