At 08:46 4/08/2009, Shaoting Cai wrote:
>Hello,
>
>In the latest ANTLRv3.g 
>(<http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185>http://fisheye2.atlassian.com/browse/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g?r=5943#l185)
>...
>184     ruleScopeSpec
>185         :    'scope' ACTION -> ^('scope' ACTION)
>186         |    'scope' id (',' id)* ';' -> ^('scope' id+)
>187         |    'scope' ACTION
>188              'scope' id (',' id)* ';'
>189              -> ^('scope' ACTION id+ )
>190         ;
>...
>
>It seems to me that the alternatives are duplicated.  Or is there 
>any purpose that they are here?

They're not duplicated, just poorly indented.  Alt 3 is basically 
Alt 1 + Alt 2, but produces a different AST.

--~--~---------~--~----~------------~-------~--~----~
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

Reply via email to