[antlr-interest] encoding problems?

Mark Fink mark at mark-fink.de
Thu Aug 28 13:47:16 PDT 2008


Hi there,

sorry for this but I think I am in some trouble with encoding. I just
converted all my files back to ASCII and it helped a little but I am still
in trouble.
I use the brand new 3.1 version of antlr with the Python flavor.
I am trying to build an AST for this: "select a.b, c.d from e.f, g.h ;"


line 1:7 mismatched input u'a' expecting ID
line 1:21 required (...)+ loop did not match anything at input u'e'
line 1:26 required (...)+ loop did not match anything at input u'g'
(SELECT (COLUMN <mismatched token: [@1,7:7=u'a',<27>,1:7], resync=a> b)
(COLUMN c d) (FROM <error: e.f> <error: g.h>))

The ID rule is like that:
ID            : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')+ ;

Could you please point me to some useful information on how to solve
(understand) this.


-- 
Mark Fink
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080828/4e59a196/attachment.html 


More information about the antlr-interest mailing list