
org.jnario.spec.parser.antlr.SpecParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jnario.standalone Show documentation
Show all versions of org.jnario.standalone Show documentation
The required libraries to execute Jnario specifications without Eclipse.
The newest version!
/*
* generated by Xtext
*/
package org.jnario.spec.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.jnario.spec.services.SpecGrammarAccess;
public class SpecParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
private SpecGrammarAccess grammarAccess;
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
@Override
protected org.jnario.spec.parser.antlr.internal.InternalSpecParser createParser(XtextTokenStream stream) {
return new org.jnario.spec.parser.antlr.internal.InternalSpecParser(stream, getGrammarAccess());
}
@Override
protected String getDefaultRuleName() {
return "SpecFile";
}
public SpecGrammarAccess getGrammarAccess() {
return this.grammarAccess;
}
public void setGrammarAccess(SpecGrammarAccess grammarAccess) {
this.grammarAccess = grammarAccess;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy