public class ActionScriptTarget extends Target
targetCharValueEscape
Constructor and Description |
---|
ActionScriptTarget() |
Modifier and Type | Method and Description |
---|---|
protected org.stringtemplate.v4.ST |
chooseWhereCyclicDFAsGo(Tool tool,
CodeGenerator generator,
Grammar grammar,
org.stringtemplate.v4.ST recognizerST,
org.stringtemplate.v4.ST cyclicDFAST) |
String |
encodeIntAsCharEscape(int v)
ActionScript doesn't support Unicode String literals that are considered "illegal"
or are in the surrogate pair ranges.
|
String |
getTarget64BitStringFromValue(long word)
Convert long to two 32-bit numbers separted by a comma.
|
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
|
genRecognizerFile, genRecognizerHeaderFile, getMaxCharValue, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, isValidActionScope, performGrammarAnalysis, postProcessAction, useBaseTemplatesForSynPredFragments
public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)
Target
getTargetCharLiteralFromANTLRCharLiteral
in class Target
public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)
Target
getTokenTypeAsTargetLabel
in class Target
public String encodeIntAsCharEscape(int v)
encodeIntAsCharEscape
in class Target
v
- public String getTarget64BitStringFromValue(long word)
getTarget64BitStringFromValue
in class Target
protected org.stringtemplate.v4.ST chooseWhereCyclicDFAsGo(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST recognizerST, org.stringtemplate.v4.ST cyclicDFAST)
Copyright © 1992–2015 ANTLR. All rights reserved.