[antlr-interest] Using composite grammars
Jim Idle
jimi at temporal-wave.com
Wed Sep 8 08:27:04 PDT 2010
It is likely that your import statement is in the wrong order with respect
to options {} and @lexer:: etc. Just move it around until it works. Also the
syntax is one import command with a comma separated list of the grammars to
import.
Jim
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of rhann at rationalcommerce.com
> Sent: Wednesday, September 08, 2010 3:34 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Using composite grammars
>
> I seem to be making an elementary blunder with composite grammars.
>
> Can anyone point out documentation describing the use of composite
> grammars in more detail than is found in the wiki article? I'm getting
this:
>
> [10:48:39] error(161): dbSQL.g:14:8: combined grammar dbSQL cannot import
> combined grammar dbDML [10:48:39] error(100): dbSQL.g:15:1: syntax error:
> antlr: dbSQL.g:15:1: unexpected token: import [10:48:39] error(150):
> grammar file dbSQL.g has no rules
>
> Roy
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address
More information about the antlr-interest
mailing list