|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.generator.parser.antlr.ex.common.AntlrFragmentHelper
org.eclipse.xtext.generator.parser.antlr.ex.wsAware.SyntheticTerminalAwareFragmentHelper
public class SyntheticTerminalAwareFragmentHelper
This fragment helper could be used to implement whitespace aware grammars.
| Constructor Summary | |
|---|---|
SyntheticTerminalAwareFragmentHelper(Naming naming)
|
|
| Method Summary | |
|---|---|
boolean |
isSyntheticTerminalRule(TerminalRule rule)
Synthetic terminal rules are rules which will not lead to a real terminal rule in the generated lexer grammar but only provide the respective token types instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntheticTerminalAwareFragmentHelper(Naming naming)
| Method Detail |
|---|
public boolean isSyntheticTerminalRule(TerminalRule rule)
This implementation answers true for any terminal rule that has a body in the form
terminal MY_TERMINAL: 'synthetic:MY_TERMINAL';.
isSyntheticTerminalRule in class AntlrFragmentHelpertrue if this rule should not get an own lexer body.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||