Package org.antlr.codegen
Class CSharp3Target
- java.lang.Object
-
- org.antlr.codegen.Target
-
- org.antlr.codegen.CSharp3Target
-
- Direct Known Subclasses:
CSharp2Target
public class CSharp3Target extends Target
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSharp3Target.StringRenderer
-
Field Summary
-
Fields inherited from class org.antlr.codegen.Target
targetCharValueEscape
-
-
Constructor Summary
Constructors Constructor Description CSharp3Target()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encodeIntAsCharEscape(int v)
protected void
genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST)
String
getTarget64BitStringFromValue(long word)
Convert long to 0xNNNNNNNNNNNNNNNN by default for spitting out with bitsets.boolean
useBaseTemplatesForSynPredFragments()
-
Methods inherited from class org.antlr.codegen.Target
genRecognizerHeaderFile, getMaxCharValue, getTargetCharLiteralFromANTLRCharLiteral, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, getTokenTypeAsTargetLabel, isValidActionScope, performGrammarAnalysis, postProcessAction
-
-
-
-
Method Detail
-
useBaseTemplatesForSynPredFragments
public boolean useBaseTemplatesForSynPredFragments()
- Overrides:
useBaseTemplatesForSynPredFragments
in classTarget
-
encodeIntAsCharEscape
public String encodeIntAsCharEscape(int v)
- Overrides:
encodeIntAsCharEscape
in classTarget
-
getTarget64BitStringFromValue
public String getTarget64BitStringFromValue(long word)
Description copied from class:Target
Convert long to 0xNNNNNNNNNNNNNNNN by default for spitting out with bitsets. I.e., convert bytes to hex string.- Overrides:
getTarget64BitStringFromValue
in classTarget
-
genRecognizerFile
protected void genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, org.stringtemplate.v4.ST outputFileST) throws IOException
- Overrides:
genRecognizerFile
in classTarget
- Throws:
IOException
-
-