41 lines
1,003 B
Java
41 lines
1,003 B
Java
/*
|
|
* generated by Xtext 2.23.0
|
|
*/
|
|
package fr.n7.parser.antlr;
|
|
|
|
import com.google.inject.Inject;
|
|
import fr.n7.parser.antlr.internal.InternalPDL2Parser;
|
|
import fr.n7.services.PDL2GrammarAccess;
|
|
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
|
|
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
|
|
|
|
public class PDL2Parser extends AbstractAntlrParser {
|
|
|
|
@Inject
|
|
private PDL2GrammarAccess grammarAccess;
|
|
|
|
@Override
|
|
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
|
|
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
|
|
}
|
|
|
|
|
|
@Override
|
|
protected InternalPDL2Parser createParser(XtextTokenStream stream) {
|
|
return new InternalPDL2Parser(stream, getGrammarAccess());
|
|
}
|
|
|
|
@Override
|
|
protected String getDefaultRuleName() {
|
|
return "Process";
|
|
}
|
|
|
|
public PDL2GrammarAccess getGrammarAccess() {
|
|
return this.grammarAccess;
|
|
}
|
|
|
|
public void setGrammarAccess(PDL2GrammarAccess grammarAccess) {
|
|
this.grammarAccess = grammarAccess;
|
|
}
|
|
}
|