| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getTargetCharLiteralFromANTLRCharLiteral(final CodeGenerator generator, final String literal)
Overrides org. |
| Perl5Target | back to summary |
|---|---|
| public Perl5Target() | |
| encodeIntAsCharEscape | back to summary |
|---|---|
| public String encodeIntAsCharEscape(final int v) Overrides org.
| |
| getTargetCharLiteralFromANTLRCharLiteral | back to summary |
|---|---|
| public String getTargetCharLiteralFromANTLRCharLiteral(final CodeGenerator generator, final String literal) Overrides org. Doc from org. Convert from an ANTLR char literal found in a grammar file to an equivalent char literal in the target language. For most languages, this means leaving 'x' as 'x'. Actually, we need to escape ' ' so that it doesn't get converted to \n by the compiler. Convert the literal to the char value and then to an appropriate target char literal. Expect single quotes around the incoming literal.
| |