<html>
<body>
At 08:46 4/08/2009, Shaoting Cai wrote:<br>
<blockquote type=cite class=cite cite="">Hello,<br><br>
In the latest ANTLRv3.g
(<a href="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</a>
)<br>
...<br>
184 ruleScopeSpec<br>
185 :
'scope' ACTION -> ^('scope' ACTION)<br>
186 |
'scope' id (',' id)* ';' -> ^('scope' id+)<br>
187 |
'scope' ACTION<br>
188
'scope' id (',' id)* ';'<br>
189
-> ^('scope' ACTION id+ )<br>
190 ;<br>
...<br><br>
It seems to me that the alternatives are duplicated. Or is there
any purpose that they are here?</blockquote><br>
They're not duplicated, just poorly indented. Alt 3 is basically
Alt 1 + Alt 2, but produces a different AST.<br>
</body>
</html>