org.antlr.codegen
Class CSharp3Target

java.lang.Object
  extended by org.antlr.codegen.Target
      extended by org.antlr.codegen.CSharp3Target
Direct Known Subclasses:
CSharp2Target

public class CSharp3Target
extends Target


Nested Class Summary
static class CSharp3Target.StringRenderer
           
 
Field Summary
 
Fields inherited from class org.antlr.codegen.Target
targetCharValueEscape
 
Constructor Summary
CSharp3Target()
           
 
Method Summary
 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.
 
Methods inherited from class org.antlr.codegen.Target
genRecognizerHeaderFile, getMaxCharValue, getTargetCharLiteralFromANTLRCharLiteral, getTargetStringLiteralFromANTLRStringLiteral, getTargetStringLiteralFromString, getTargetStringLiteralFromString, getTokenTypeAsTargetLabel, isValidActionScope, performGrammarAnalysis, postProcessAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSharp3Target

public CSharp3Target()
Method Detail

encodeIntAsCharEscape

public String encodeIntAsCharEscape(int v)
Overrides:
encodeIntAsCharEscape in class Target

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 class Target

genRecognizerFile

protected void genRecognizerFile(Tool tool,
                                 CodeGenerator generator,
                                 Grammar grammar,
                                 org.stringtemplate.v4.ST outputFileST)
                          throws IOException
Overrides:
genRecognizerFile in class Target
Throws:
IOException


Copyright © 2011. All Rights Reserved.