List of usage examples for org.antlr.v4.runtime Token EOF
int EOF
To view the source code for org.antlr.v4.runtime Token EOF.
Click Source Link
From source file:se.dykstrom.jcc.common.utils.ParseUtils.java
License:Open Source License
/** * Checks that the parsing has completed, and that the next token is EOF. * If this is not the case, a syntax error is generated. *//* ww w.j ava 2 s .c om*/ public static void checkParsingComplete(Parser parser) { if (parser.getCurrentToken().getType() != Token.EOF) { parser.notifyErrorListeners("Syntax error at EOF."); } }