[antlr-interest] Expecting EOF?
Jim Idle
jimi at temporal-wave.com
Sun Apr 11 10:00:42 PDT 2010
You are probably just missing a trailing newline from your input file because Windows is stupid about text files and does not do it correctly like UNIX ;-)
Jim
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of William v Doorn
> Sent: Sunday, April 11, 2010 9:16 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Expecting EOF?
>
> Hello all,
>
> So I've been writing my own small language build from the examples
> inside the book of Terency parr. But now I'm getting the following
> error:
>
> C:\antlr>java -cp
> .;antlr-3.0.jar;stringtemplate-3.0.jar;antlr-runtime-3.0.jar;a
> ntlr-2.7.7.jar Test < input.txt
> line 0:-1 mismatched input '<EOF>' expecting NEWLINE
>
> Isn't a NEWLINE the same as an EOF? And, what's line 0:-1? I've
> attached the Eval and expression parser and the input file I used.
>
> Thanks,
>
> William van Doorn
More information about the antlr-interest
mailing list