[antlr-interest] tpantlr-code\code\templates\generator\1pass\ExprParser.java
pfa at isep.ipp.pt
pfa at isep.ipp.pt
Fri Nov 27 05:45:18 PST 2009
Hi,
Javac compliants about ops, type ExprParser.addOp_return, in case
2, of ExprParser.java.
In this case ops type should be subOp_return and
not addOp_return.
Changed the generated code to include a new var opss in
expr():
// $ANTLR 3.1.2 Expr.g
(...)
public final
ExprParser.expr_return expr() throws RecognitionException {
(...)
ExprParser.subOp_return opss = null;
(...)
case 2 :
//
Expr.g:51:33: ops+= subOp
{
pushFollow(FOLLOW_subOp_in_expr244);
opss=subOp();
state._fsp--;
if (list_ops==null) list_ops=new
ArrayList();
list_ops.add(opss.getTemplate());
}
break;
(...)
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091127/411aa217/attachment.html
More information about the antlr-interest
mailing list