public class SyntheticTerminalDetector
extends java.lang.Object
true
for any terminal rule that has a body in the form
terminal MY_TERMINAL: 'synthetic:MY_TERMINAL';
.Constructor and Description |
---|
SyntheticTerminalDetector() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSyntheticTerminalRule(TerminalRule rule)
Answers
true if the given terminal rule is synthetic. |
public boolean isSyntheticTerminalRule(TerminalRule rule)
true
if the given terminal rule is synthetic. That is,
the tokens for this rule will not be produced by the generated Antlr lexer
but manually in a custom token source.