| Modifier and Type | Field and Description |
|---|---|
| protected static final HashSet | |
| protected static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public Set | |
| public Map | getTargetCharValueEscape()
Overrides org. |
| public String | getTargetStringLiteralFromANTLRStringLiteral(CodeGenerator generator, String literal, boolean addQuotes, boolean escapeSpecial)
Overrides org. Convert from an ANTLR string literal found in a grammar file to an equivalent string literal in the target language. |
| public boolean |
| reservedWords | back to summary |
|---|---|
| protected static final HashSet<String> reservedWords | |
| targetCharValueEscape | back to summary |
|---|---|
| protected static final Map<Character, String> targetCharValueEscape | |
| DartTarget | back to summary |
|---|---|
| public DartTarget(CodeGenerator gen) | |
| escapeChar | back to summary |
|---|---|
| protected String escapeChar(int v) Overrides org.
| |
| getReservedWords | back to summary |
|---|---|
| public Set Implements abstract org. | |
| getTargetCharValueEscape | back to summary |
|---|---|
| public Map Overrides org. Doc from org. For pure strings of Unicode char, how can we display it in the target language as a literal. Useful for dumping predicates and such that may refer to chars that need to be escaped when represented as strings. Also, templates need to be escaped so that the target language can hold them as a string. Each target can have a different set in memory at same time.
| |
| getTargetStringLiteralFromANTLRStringLiteral | back to summary |
|---|---|
| public String getTargetStringLiteralFromANTLRStringLiteral(CodeGenerator generator, String literal, boolean addQuotes, boolean escapeSpecial) Overrides org. Doc from org. 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
Note that we have decided to allow people to use '\"' without penalty, so
we must build the target string in a loop as
| |
| isATNSerializedAsInts | back to summary |
|---|---|
| public boolean isATNSerializedAsInts() Overrides org.
| |