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: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of William v Doorn > Sent: Sunday, April 11, 2010 9:16 AM > To: [email protected] > 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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
