On Sat, 1 Feb 2003, Wouter van Ooijen wrote: *>> Just to mention that the *default* error messages in those parser *>> generators are bad. *> *>Maybe I have a grudge against bottom-up parser from my university years, *>but I wanted exact error messages (this line, this character). If that's *>possible nowadays with those tools I maybe I could have used them. But *>what the heck: lex/parse is so easy... Hehe. The short version is that you save parsing info in lex in an extended token type and use that in bison when an error occurs on that token (either when storing or when solving). I am not an expert on this but it works fine. You can do things like 'syntax error at lll:ccc in statement begun at line lll'. Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads