Ronghui Yu schrieb: > Hi, Jim, > > Thanks very much for your help > > I tried to turn backtrack off before, but failed to build the grammar > with a lot of errors, so I have to turn it on
Did you look at <http://www.antlr.org/wiki/display/ANTLR3/How+to+remove+global+backtracking+from+your+grammar>? Johannes > > > > ============================== > Regards, > Ronghui Yu > Sierra Atlantic > > ----- Original Message ----- > *From:* Jim Idle <mailto:[EMAIL PROTECTED]> > *To:* Ronghui Yu <mailto:[EMAIL PROTECTED]> > *Cc:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > *Sent:* Thursday, August 28, 2008 10:59 PM > *Subject:* Re: [antlr-interest] Can't recoginze a file start with > HIDDENlexersince 3.1b1 > > On Thu, 2008-08-28 at 13:29 +0800, Ronghui Yu wrote: >> >> The following is the complete implementation of CREATE DATABASE of >> our Sybase parser, and it shows its structures. >> The text in red below was added a few days ago when I found this >> problem. I commented it because they would introduce some other >> problems. God.... >> Thanks >> grammar Sybase; >> options >> { >> language = C; >> backtrack = true; > > Hmmm - backtrack = true isn't a good idea for something like SQL (or > almost any production parser really) - this may be masking your > issue, but I will look at this for you this weekend - apologies that > I am too busy to look a this before then. > > Also, my own parser matches the comments in the lexer and places > them on their own channel. You can then look for them in the tree > walker if you need them. > > Jim >> } > >> > > __________________________________________________________________________________________________________________ > 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." > ________________________________________________________________________________________________________________ > > > ------------------------------------------------------------------------ > > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
