[antlr-interest] Delegates grammar in ANTLR 3.1b1

Jim Idle jimi at temporal-wave.com
Sun Apr 6 13:32:21 PDT 2008


Just parser java.g and it will include an crate all the other necessary files. You will need the very latest snapshot to be able to include a grammar in more than one other grammar though.

 

Jim

 

From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Edgar Espina
Sent: Sunday, April 06, 2008 8:10 AM
To: Antlr List
Subject: [antlr-interest] Delegates grammar in ANTLR 3.1b1

 

Hi all

I'm parsing Java.g and it's ok. Now when i try to parse for example JavaDecl.g it fails and I see an error like this:
       error(107): JavaDecl.g:4:4: literal has no associated lexer rule: 'package'
and it's because this:
       parser grammar JavaDecl;

It's right?  Can I parse JavaDecl alone?

Thanks in advance

Edgar



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080406/f930f773/attachment.html 


More information about the antlr-interest mailing list