| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| protected static final HashSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| 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 String | getVisitorFileName(boolean header)
A given grammar T, return the visitor name such as
TVisitor.java, if we're using the Java target.
|
| private void |
| DO_GOFMT | back to summary |
|---|---|
| private static final boolean DO_GOFMT | |
| reservedWords | back to summary |
|---|---|
| protected static final HashSet<String> reservedWords | |
| GoTarget | back to summary |
|---|---|
| public GoTarget(CodeGenerator gen) | |
| genFile | back to summary |
|---|---|
| protected void genFile(Grammar g, ST outputFileST, String fileName) Overrides org.
| |
| getBaseListenerFileName | back to summary |
|---|---|
| public String getBaseListenerFileName(boolean header) Overrides 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. 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. 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.
| |
| getVisitorFileName | back to summary |
|---|---|
| public String getVisitorFileName(boolean header) Overrides org. A given grammar T, return the visitor name such as TVisitor.java, if we're using the Java target. | |
| gofmt | back to summary |
|---|---|
| private void gofmt(File fileName) | |