| java.lang.Object org.antlr.codegen.Target org.antlr.codegen.ObjCTarget
getTargetStringLiteralFromANTLRStringLiteral | public String getTargetStringLiteralFromANTLRStringLiteral(CodeGenerator generator, String literal)(Code) | | Convert from an ANTLR string literal found in a grammar file to
an equivalent string literal in the target language. For Java, this
is the translation 'a\n"' -> "a\n\"". Expect single quotes
around the incoming literal. Just flip the quotes and replace
double quotes with \"
|
getTokenTextAndTypeAsTargetLabel | public String getTokenTextAndTypeAsTargetLabel(CodeGenerator generator, String text, int tokenType)(Code) | | Target must be able to override the labels used for token types. Sometimes also depends on the token text.
|
getTokenTypeAsTargetLabel | public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)(Code) | | If we have a label, prefix it with the recognizer's name
|
Methods inherited from org.antlr.codegen.Target | protected void genRecognizerFile(Tool tool, CodeGenerator generator, Grammar grammar, StringTemplate outputFileST) throws IOException(Code)(Java Doc) protected void genRecognizerHeaderFile(Tool tool, CodeGenerator generator, Grammar grammar, StringTemplate headerFileST, String extName) throws IOException(Code)(Java Doc) public int getMaxCharValue(CodeGenerator generator)(Code)(Java Doc) public String getTarget64BitStringFromValue(long word)(Code)(Java Doc) public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, String literal)(Code)(Java Doc) public String getTargetStringLiteralFromANTLRStringLiteral(CodeGenerator generator, String literal)(Code)(Java Doc) public String getTargetStringLiteralFromString(String s, boolean quoted)(Code)(Java Doc) public String getTargetStringLiteralFromString(String s)(Code)(Java Doc) public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype)(Code)(Java Doc) public boolean isValidActionScope(int grammarType, String scope)(Code)(Java Doc) protected void performGrammarAnalysis(CodeGenerator generator, Grammar grammar)(Code)(Java Doc) public List postProcessAction(List chunks, antlr.Token actionToken)(Code)(Java Doc)
|
|
|