| 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 |
|---|---|
| public String | getBaseListenerFileName(boolean header)
Overrides org. |
| public String | getBaseVisitorFileName(boolean header)
Overrides org. |
| public String | getListenerFileName(boolean header)
A given grammar T, return the listener name such as
TListener.java, if we're using the Java target.
|
| public String | getRecognizerFileName(boolean header)
Overrides org. |
| protected Set | |
| public Map | getTargetCharValueEscape()
Overrides org. |
| public String | getVisitorFileName(boolean header)
A given grammar T, return the visitor name such as
TVisitor.java, if we're using the Java target.
|
| public boolean | |
| protected boolean |
| reservedWords | back to summary |
|---|---|
| protected static final HashSet<String> reservedWords | |
| targetCharValueEscape | back to summary |
|---|---|
| protected static final Map<Character, String> targetCharValueEscape | |
| CppTarget | back to summary |
|---|---|
| public CppTarget(CodeGenerator gen) | |
| getBaseListenerFileName | back to summary |
|---|---|
| public String getBaseListenerFileName(boolean header) Overrides org. Doc from org. A given grammar T, return a blank listener implementation such as TBaseListener.java, if we're using the Java target.
| |
| getBaseVisitorFileName | back to summary |
|---|---|
| public String getBaseVisitorFileName(boolean header) Overrides org. Doc from org. A given grammar T, return a blank listener implementation such as TBaseListener.java, if we're using the Java target.
| |
| getListenerFileName | back to summary |
|---|---|
| public String getListenerFileName(boolean header) Overrides org. Doc from org. A given grammar T, return the listener name such as TListener.java, if we're using the Java target.
| |
| getRecognizerFileName | back to summary |
|---|---|
| public String getRecognizerFileName(boolean header) Overrides org. Doc from org. Generate TParser.java and TLexer.java from T.g4 if combined, else just use T.java as output regardless of type.
| |
| getReservedWords | back to summary |
|---|---|
| protected 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.
| |
| getVisitorFileName | back to summary |
|---|---|
| public String getVisitorFileName(boolean header) Overrides org. Doc from org. A given grammar T, return the visitor name such as TVisitor.java, if we're using the Java target.
| |
| needsHeader | back to summary |
|---|---|
| public boolean needsHeader() Overrides org. | |
| shouldUseUnicodeEscapeForCodePointInDoubleQuotedString | back to summary |
|---|---|
| protected boolean shouldUseUnicodeEscapeForCodePointInDoubleQuotedString(int codePoint) Overrides org.
| |