Lines Matching defs:literal
69 /** Converts a String into a representation that can be use as a literal
74 * @param s The String to be changed into a literal
96 /** Convert from an ANTLR char literal found in a grammar file to
97 * an equivalent char literal in the target language. For Java, this
100 * around the incoming literal.
103 public String getTargetCharLiteralFromANTLRCharLiteral( CodeGenerator codegen, String literal) {
104 int c = Grammar.getCharValueFromGrammarCharLiteral(literal);
113 /** Convert from an ANTLR string literal found in a grammar file to
114 * an equivalent string literal in the target language. For Java, this
117 * around the incoming literal.
120 public String getTargetStringLiteralFromANTLRStringLiteral( CodeGenerator codegen, String literal) {
121 StringBuffer buf = Grammar.getUnescapedStringFromGrammarStringLiteral(literal);