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

Ronghui Yu Ronghui.Yu at SierraAtlantic.com
Fri Aug 29 03:39:45 PDT 2008


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



==============================
Regards,
Ronghui Yu
Sierra Atlantic
  ----- Original Message ----- 
  From: Jim Idle 
  To: Ronghui Yu 
  Cc: 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." 
________________________________________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080829/f779e8ca/attachment.html 


More information about the antlr-interest mailing list