public class RubyTarget extends Target
targetCharValueEscape
Constructor and Description |
---|
RubyTarget() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxCharValue(CodeGenerator generator)
Some targets only support ASCII or 8-bit chars/strings.
|
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
|
encodeIntAsCharEscape, genRecognizerFile, genRecognizerHeaderFile, getTarget64BitStringFromValue, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, isValidActionScope, performGrammarAnalysis, postProcessAction
public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)
Target
getTargetCharLiteralFromANTLRCharLiteral
in class Target
public int getMaxCharValue(CodeGenerator generator)
Target
getMaxCharValue
in class Target
public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)
Target
getTokenTypeAsTargetLabel
in class Target
Copyright © 2020. All rights reserved.