<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&nbsp;&nbsp;&nbsp;&nbsp; ruleScopeSpec<br>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;&nbsp;&nbsp;
'scope' ACTION -&gt; ^('scope' ACTION)<br>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;
'scope' id (',' id)* ';' -&gt; ^('scope' id+)<br>
187&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;
'scope' ACTION<br>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'scope' id (',' id)* ';'<br>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-&gt; ^('scope' ACTION id+ )<br>
190&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<br>
...<br><br>
It seems to me that the alternatives are duplicated.&nbsp; Or is there
any purpose that they are here?</blockquote><br>
They're not duplicated, just poorly indented.&nbsp; Alt 3 is basically
Alt 1 + Alt 2, but produces a different AST.<br>
</body>
</html>