04 Oct 2010, 02:58
Iconator_670f4072fea17ea4cd2c12c15016a36a_pragsmall

Jamie Murai (3 posts)

I’m getting the following error when I have either more than one, or no newline characters before EOF in the input file.

line 0:-1 mismatched input '<EOF>' expecting NEWLINE

How can I account for this situation? Preferably I’d like to deal with it in the grammar.

07 Oct 2010, 21:59
Australia-3_pragsmall

Terence Parr (36 posts)

Hi Jamie, could I ask you to send this question to the antlr-interest@antlr.org list? Others can probably help you in general more quickly than I can. Here though it’s pretty clear that you are missing a newline before EOF in your input :)

  You must be logged in to comment