[antlr-interest] line 0:-1 mismatched input '<EOF>'

David Holroyd dave at badgers-in-foil.co.uk
Wed Jan 30 05:30:57 PST 2008


On Wed, Jan 30, 2008 at 06:48:35PM +0530, Anuj Mehta wrote:
> I wrote a grammar for parsing a small text but getting following error.
> [...]

It's not addressing the question you asked, but have you looked at
reading from /proc/net/route, rather than parsing the output of
/sbin/route?  The proc file is supposed to be more easily
machine-readable (in fact, it probably doesn't even need a 'parser' to
do the job -- I think the /sbin/route command just reads /proc/net/route
line by line using scanf)

ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list