[antlr-interest] Does it make sense a "fragment parser rule"?

Corellian corellian.c at gmail.com
Sat Aug 18 18:05:20 PDT 2007


Here a (probably) stupid question:

When I'm writing a parser rule like:

   identifierList: ID (COMMA ID)* ;

and then, another parser rule like:

   variableDeclaration: type identifierList SEMI ;

does it make sense declaring the "identifierList" as a "fragment" rule?

Thanks.

-- 
GPG Key-ID: 0x564903FA - JID: corellian at swissjabber.ch


More information about the antlr-interest mailing list