@Override protected Grammar getGrammar() { return grammarAccess.getGrammar(); }
public TerminalRule getANY_OTHERRule() { return (tANY_OTHER != null) ? tANY_OTHER : (tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ANY_OTHER")); } }
public InternalCodetemplatesParser(TokenStream input, CodetemplatesGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); }
public InternalCodetemplatesParser(TokenStream input, CodetemplatesGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); }
public TerminalRule getIDRule() { return (tID != null) ? tID : (tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ID")); }
public TerminalRule getWSRule() { return (tWS != null) ? tWS : (tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "WS")); }
public TerminalRule getSTRINGRule() { return (tSTRING != null) ? tSTRING : (tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "STRING")); }
@Inject public CodetemplatesGrammarAccess(GrammarProvider grammarProvider) { this.grammar = internalFindGrammar(grammarProvider); this.pCodetemplates = new CodetemplatesElements(); this.pCodetemplate = new CodetemplateElements(); this.pTemplateBodyWithQuotes = new TemplateBodyWithQuotesElements(); this.pTemplateBody = new TemplateBodyElements(); this.pTemplatePart = new TemplatePartElements(); this.pVariableOrDollar = new VariableOrDollarElements(); this.pVariable = new VariableElements(); this.pValidID = new ValidIDElements(); this.pFQN = new FQNElements(); this.pLiteral = new LiteralElements(); this.pLiteralValue = new LiteralValueElements(); this.pDollar = new DollarElements(); this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.ID"); this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.STRING"); this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.WS"); this.tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.ANY_OTHER"); }