The parser was still trying to read the next token even when the current token was END, but I think it should just stop reading here. When reading from TSIV table there can be null bytes at the end when would cause an exception in the lexer.