Last change
on this file since 61 was
61,
checked in by hkaulbersch, 10 years ago
|
initial commit
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * generated by Xtext |
---|
3 | */ |
---|
4 | package de.ugoe.cs.swe.bnftools.parser.antlr; |
---|
5 | |
---|
6 | import com.google.inject.Inject; |
---|
7 | |
---|
8 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
---|
9 | import de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess; |
---|
10 | |
---|
11 | public class EbnfParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser { |
---|
12 | |
---|
13 | @Inject |
---|
14 | private EbnfGrammarAccess grammarAccess; |
---|
15 | |
---|
16 | @Override |
---|
17 | protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { |
---|
18 | tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); |
---|
19 | } |
---|
20 | |
---|
21 | @Override |
---|
22 | protected de.ugoe.cs.swe.bnftools.parser.antlr.internal.InternalEbnfParser createParser(XtextTokenStream stream) { |
---|
23 | return new de.ugoe.cs.swe.bnftools.parser.antlr.internal.InternalEbnfParser(stream, getGrammarAccess()); |
---|
24 | } |
---|
25 | |
---|
26 | @Override |
---|
27 | protected String getDefaultRuleName() { |
---|
28 | return "EtsiBnf"; |
---|
29 | } |
---|
30 | |
---|
31 | public EbnfGrammarAccess getGrammarAccess() { |
---|
32 | return this.grammarAccess; |
---|
33 | } |
---|
34 | |
---|
35 | public void setGrammarAccess(EbnfGrammarAccess grammarAccess) { |
---|
36 | this.grammarAccess = grammarAccess; |
---|
37 | } |
---|
38 | |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.