[antlr-interest] Can't recoginze a file start with HIDDEN lexer since 3.1b1

Ronghui Yu Ronghui.Yu at SierraAtlantic.com
Wed Aug 27 00:39:24 PDT 2008


We're developing several SQL parsers for different major DBMS, before 3.1b1 was available, we finished development based 3.0.1, and run a bunch of *.sql files with a great amout of SQL statements againt this parser. Everything went well at that time.

Then when 3.1b1 was available, we switched to it with exactly the same grammar code, and run the same *sql files. Something different happened, all *.sql files start with empty line or lines, SQL comment line or lines, could not pass the test. Now when 3.1 available, the situation is the same as that of 3.1b1. And I learnt that if the file start with lexers with HIDDEN channel, it would fail against the test. 

I wonder if anyone else ever comes across the same situtation? And if yes, any suggestion to solve it?

By the way, I am using the C target.
Thanks!

==============================
Regards,
Ronghui Yu
Sierra Atlantic

__________________________________________________________________________________________________________________
DISCLAIMER:"The information contained in this message and the attachments (if any) may be privileged and confidential and protected from disclosure. You are hereby notified that any unauthorized use, dissemination, distribution or copying of this communication, review, retransmission, or taking of any action based upon this information, by persons or entities other than the intended recipient, is strictly prohibited. If you are not the intended recipient or an employee or agent responsible for delivering this message, and have received this communication in error, please notify us immediately by replying to the message and kindly delete the original message, attachments, if any, and all its copies from your computer system. Thank you for your cooperation." 
________________________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080827/fb43700b/attachment.html 


More information about the antlr-interest mailing list