Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9356fad6d5c9d5bbfd35cb02c680332252f9a81d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* generated by Xtext
*/
package org.eclipse.etrice.core.etmap.parser.antlr;

import com.google.inject.Inject;

import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclipse.etrice.core.etmap.services.ETMapGrammarAccess;

public class ETMapParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
	
	@Inject
	private ETMapGrammarAccess grammarAccess;
	
	@Override
	protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
		tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
	}
	
	@Override
	protected org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapParser createParser(XtextTokenStream stream) {
		return new org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapParser(stream, getGrammarAccess());
	}
	
	@Override 
	protected String getDefaultRuleName() {
		return "MappingModel";
	}
	
	public ETMapGrammarAccess getGrammarAccess() {
		return this.grammarAccess;
	}
	
	public void setGrammarAccess(ETMapGrammarAccess grammarAccess) {
		this.grammarAccess = grammarAccess;
	}
	
}

Back to the top