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: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of [email protected] > Sent: Wednesday, September 08, 2010 3:34 AM > To: [email protected] > 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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- 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.
