projet-mini-genie-logiciel-.../eclipse-workspace/fr.n7.pdl1/src-gen/fr/n7/parser/antlr/PDL1Parser.java

41 lines
1,003 B
Java
Raw Normal View History

2021-10-12 16:49:13 +00:00
/*
* generated by Xtext 2.23.0
*/
package fr.n7.parser.antlr;
import com.google.inject.Inject;
import fr.n7.parser.antlr.internal.InternalPDL1Parser;
import fr.n7.services.PDL1GrammarAccess;
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
public class PDL1Parser extends AbstractAntlrParser {
@Inject
private PDL1GrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected InternalPDL1Parser createParser(XtextTokenStream stream) {
return new InternalPDL1Parser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "Process";
}
public PDL1GrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(PDL1GrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}