public class AntlrGrammarGenerator extends AbstractAntlrGrammarWithActionsGenerator
_grammarAccessExtensions, _syntheticTerminalDetector, _xtextGeneratorNaming, keywordHelper
Constructor and Description |
---|
AntlrGrammarGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_assignmentEbnf(AbstractElement it,
Assignment assignment,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
_assignmentEbnf(CrossReference it,
Assignment assignment,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
_assignmentEbnf(RuleCall it,
Assignment assignment,
AntlrOptions options,
boolean supportActions) |
protected java.lang.CharSequence |
_compileRule(ParserRule it,
Grammar grammar,
AntlrOptions options) |
protected java.lang.String |
_dataTypeEbnf2(Keyword it,
boolean supportActions) |
protected java.lang.String |
_dataTypeEbnf2(RuleCall it,
boolean supportActions) |
protected java.lang.String |
_ebnf2(Action it,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
_ebnf2(EnumLiteralDeclaration it,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
_ebnf2(Keyword it,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
_ebnf2(RuleCall it,
AntlrOptions options,
boolean supportActions) |
protected java.lang.String |
compileEntryReturns(ParserRule it,
AntlrOptions options) |
protected java.lang.String |
compileEntryRule(ParserRule it,
Grammar grammar,
AntlrOptions options) |
protected java.lang.String |
compileInit(AbstractRule it,
AntlrOptions options) |
protected java.lang.String |
compileParserImports(Grammar it,
AntlrOptions options) |
protected java.lang.String |
compileParserMembers(Grammar it,
AntlrOptions options) |
protected java.lang.CharSequence |
compileReturns(AbstractRule it,
AntlrOptions options) |
protected java.lang.CharSequence |
compileRule(java.lang.Object it,
Grammar grammar,
AntlrOptions options) |
protected java.lang.String |
compileRuleCatch(Grammar it,
AntlrOptions options) |
protected java.lang.CharSequence |
createModelElement(org.eclipse.emf.ecore.EObject grammarElement) |
protected java.lang.CharSequence |
createModelElementForParent(org.eclipse.emf.ecore.EObject grammarElement) |
protected java.lang.String |
crossrefEbnf(AbstractRule it,
RuleCall call,
CrossReference ref,
boolean supportActions) |
protected GrammarNaming |
getGrammarNaming() |
protected boolean |
isPassCurrentIntoFragment() |
protected java.lang.CharSequence |
newCompositeNode(org.eclipse.emf.ecore.EObject it) |
protected java.lang.CharSequence |
newLeafNode(org.eclipse.emf.ecore.EObject it,
java.lang.String token) |
protected boolean |
shouldBeSkipped(TerminalRule it,
Grammar grammar) |
_assignmentEbnf, _compileInitHiddenTokens, _compileInitHiddenTokens, _compileInitUnorderedGroups, _compileInitUnorderedGroups, _compileRestoreHiddenTokens, _compileRestoreHiddenTokens, _compileRestoreUnorderedGroups, _compileRestoreUnorderedGroups, _dataTypeEbnf2, _dataTypeEbnf2, _ebnf2, _ebnf2, _ebnf2, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, _mustBeParenthesized, assignmentEbnf, compileEntryFinally, compileEntryInit, compileFinally, compileInitHiddenTokens, compileInitUnorderedGroups, compileRestoreHiddenTokens, compileRestoreUnorderedGroups, ebnf2, getCurrentType, mustBeParenthesized
_assignmentEbnf, _assignmentEbnf, _assignmentEbnf, _compileRule, _compileRule, _compileRule, _crossrefEbnf, _crossrefEbnf, _crossrefEbnf, _dataTypeEbnf2, _dataTypeEbnf2, _ebnf2, _ebnf2, compileEBNF, compileKeywordRules, compileLexer, compileLexerHeader, compileLexerImports, compileLexerOptions, compileParser, compileParserHeader, compileParserOptions, compileRules, compileTerminalRules, compileTokens, crossrefEbnf, dataTypeEbnf, dataTypeEbnf2, dataTypeEbnfPredicate, ebnf, ebnfPredicate, generate, isCombinedGrammar, isParserBackTracking, toAntlrKeywordRule
protected GrammarNaming getGrammarNaming()
getGrammarNaming
in class AbstractAntlrGrammarGenerator
protected java.lang.String compileParserImports(Grammar it, AntlrOptions options)
compileParserImports
in class AbstractAntlrGrammarGenerator
protected java.lang.String compileParserMembers(Grammar it, AntlrOptions options)
compileParserMembers
in class AbstractAntlrGrammarGenerator
protected java.lang.String compileRuleCatch(Grammar it, AntlrOptions options)
compileRuleCatch
in class AbstractAntlrGrammarGenerator
protected boolean shouldBeSkipped(TerminalRule it, Grammar grammar)
shouldBeSkipped
in class AbstractAntlrGrammarGenerator
protected java.lang.CharSequence _compileRule(ParserRule it, Grammar grammar, AntlrOptions options)
_compileRule
in class AbstractAntlrGrammarGenerator
protected java.lang.String compileEntryRule(ParserRule it, Grammar grammar, AntlrOptions options)
protected java.lang.String compileEntryReturns(ParserRule it, AntlrOptions options)
protected java.lang.String compileInit(AbstractRule it, AntlrOptions options)
compileInit
in class AbstractAntlrGrammarWithActionsGenerator
protected java.lang.CharSequence compileReturns(AbstractRule it, AntlrOptions options)
protected java.lang.String _dataTypeEbnf2(Keyword it, boolean supportActions)
_dataTypeEbnf2
in class AbstractAntlrGrammarGenerator
protected java.lang.String _dataTypeEbnf2(RuleCall it, boolean supportActions)
_dataTypeEbnf2
in class AbstractAntlrGrammarWithActionsGenerator
protected java.lang.String _ebnf2(Action it, AntlrOptions options, boolean supportActions)
_ebnf2
in class AbstractAntlrGrammarGenerator
protected java.lang.String _ebnf2(Keyword it, AntlrOptions options, boolean supportActions)
_ebnf2
in class AbstractAntlrGrammarGenerator
protected java.lang.String _ebnf2(EnumLiteralDeclaration it, AntlrOptions options, boolean supportActions)
_ebnf2
in class AbstractAntlrGrammarGenerator
protected java.lang.String _ebnf2(RuleCall it, AntlrOptions options, boolean supportActions)
_ebnf2
in class AbstractAntlrGrammarWithActionsGenerator
protected java.lang.String crossrefEbnf(AbstractRule it, RuleCall call, CrossReference ref, boolean supportActions)
crossrefEbnf
in class AbstractAntlrGrammarWithActionsGenerator
protected java.lang.String _assignmentEbnf(CrossReference it, Assignment assignment, AntlrOptions options, boolean supportActions)
_assignmentEbnf
in class AbstractAntlrGrammarGenerator
protected java.lang.String _assignmentEbnf(AbstractElement it, Assignment assignment, AntlrOptions options, boolean supportActions)
_assignmentEbnf
in class AbstractAntlrGrammarGenerator
protected java.lang.String _assignmentEbnf(RuleCall it, Assignment assignment, AntlrOptions options, boolean supportActions)
_assignmentEbnf
in class AbstractAntlrGrammarWithActionsGenerator
protected boolean isPassCurrentIntoFragment()
isPassCurrentIntoFragment
in class AbstractAntlrGrammarWithActionsGenerator
protected java.lang.CharSequence createModelElement(org.eclipse.emf.ecore.EObject grammarElement)
protected java.lang.CharSequence createModelElementForParent(org.eclipse.emf.ecore.EObject grammarElement)
protected java.lang.CharSequence newCompositeNode(org.eclipse.emf.ecore.EObject it)
protected java.lang.CharSequence newLeafNode(org.eclipse.emf.ecore.EObject it, java.lang.String token)
protected java.lang.CharSequence compileRule(java.lang.Object it, Grammar grammar, AntlrOptions options)
compileRule
in class AbstractAntlrGrammarGenerator