[antlr-interest] Can't recoginze a file start with HIDDENlexersince 3.1b1

Ronghui Yu Ronghui.Yu at sierraatlantic.com
Fri Aug 29 18:21:55 PDT 2008


I tried L-factoring and syntax predicate, but I couldn't remove all errors yet. One of the parsers has almost 1000 rules, does it reach ANTLR limit?
Anyway, I think I need to follow the method to deal with rules one by one.
Thanks

________________________________

From: Johannes Luber [mailto:jaluber at gmx.de]
Sent: 2008-8-29 (Friday) 19:42
To: Ronghui Yu
Cc: Jim Idle; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Can't recoginze a file start with HIDDENlexersince 3.1b1



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:jimi at temporal-wave.com>
>     *To:* Ronghui Yu <mailto:Ronghui.Yu at sierraatlantic.com>
>     *Cc:* antlr-interest at antlr.org <mailto:antlr-interest at antlr.org>
>     *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/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>




__________________________________________________________________________________________________________________
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/20080830/7c427628/attachment.html 


More information about the antlr-interest mailing list