HI Sam, Thanks for your Reply. I have one antlr grammer file(not created by me) which i came to know from this forum that follows 2.7.7. syntax. when i am trying to generate java implementation of this existing grammer file, it is failing saying this: > D:\Actuate\Samplelexer-parser\ConversionTool>java antlr.Tool > vb_org.txt > ANTLR Parser Generator Version 2.7.5 (20050128) 1989-2005 > jGuru.com > error: Token stream error reading grammar(s): > vb_org.txt:45:7: expecting ''', found 'p' > TokenStreamException: expecting ''', found 'p'
SO what i understood it , there is some problem with this Gramme file.. if i am not wrong.. NOw how can i solve this issue? As i am new to Antlr , i wanted to know like Antlrworks which works for antr3 , is there any editor or some thing which i can use to create this grammer file again or validate it for syntax error? I hope now it woudl be clear what i am looking for.. ANy Help would be appreciated. regards, Gunjan On Wed, Feb 4, 2009 at 10:16 PM, Sam Harwell <[email protected]>wrote: > Are you trying to write a grammar that is build by/targets ANTLR v2 > runtime, or are you trying to write a grammar that can parse ANTLR v2 > grammar files themselves? > > > > I haven't worked with ANTLR v2, but I believe the information you are > looking for could be here: > > http://www.antlr2.org/ > > > > Sam > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Chal Chale apne Ghar > *Sent:* Wednesday, February 04, 2009 6:46 AM > *To:* [email protected] > *Subject:* [antlr-interest] Lexer/parser grammer for Antlrv2 > > > > Hi All, > > > > Is there any way to generate the Lexer/parser grammer for Antlr V2 ? > > If if we have to manually write the Grammer where can i find the > specification for Lexer/parser grammer for Antlr V2? > > I currently have Antlr2.7.5 version. > > Any help would be appreciated. > > regards, > > Gunjan > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
