we check whether all sentence tokens have been consumed or
the remaining ones fullfill lookahead expectations. See:
PythonGrammar.partial_valid_sentence (def in python.jjt)
*/
if (g.partial_valid_sentence(t)) {
return null;
}
throw fixParseError(charStream, t, filename);
}
return node;