[antlr-interest] next problem - kindof
Warner Onstine
warnero at gmail.com
Thu Aug 2 17:09:13 PDT 2007
Ok, so I have a unit test on my grammar to just call the grammar (for
right now) so I can see where it is matching stuff.
The printlns are working properly, but I get alot of errors from antlr
as well. This time I'm attaching the revised grammar and the test file
I'm using, and here are the errors/printlns I'm getting.
found package org.chama.test.models
found model Band
line 1:0 mismatched input '\r\n' expecting 'package'
line 2:6 mismatched input 'Band' expecting WS
line 2:12 mismatched input '\r\n' expecting '}'
line 1:8 mismatched input 'org.chama.test.models' expecting WS
line 3:0 mismatched input 'model' expecting NEWLINE
line 3:6 mismatched input 'Band' expecting WS
When I was walking through the antlr 3 book I was not getting any
errors like this so I know it's not normal just trying to figure out
what I'm doing wrong in the grammar.
Thanks again for the help, really appreciate it!
-warner
--
Warner Onstine - Programmer/Author
New book on Tapestry 4!
Tapestry 101 available at
http://sourcebeat.com/books/tapestrylive.html
warner at warneronstine.com
http://warneronstine.com/blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Model.g
Type: application/octet-stream
Size: 666 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070802/7fad3fce/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: package.model
Type: application/octet-stream
Size: 50 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070802/7fad3fce/attachment-0001.obj
More information about the antlr-interest
mailing list