virtual public void as_expression(as_expression ast, int parent) { // int myprec = prec("as"); // if (myprec <= parent) // parenexpr(ast, 0); // else { // visit(ast.expr, myprec); // Write(" as "); // visit(ast.ty); // } }
virtual public void as_expression(as_expression ast, int parent) { int myprec = prec("as"); if (myprec <= parent) { parenexpr(ast, 0); } else { visit(ast.expr, myprec); Write(" as "); visit(ast.ty); } }
public virtual expression as_expression(as_expression ast, int lvalue, int rvalue) { ast.expr = expression(ast.expr, lvalue, rvalue); return(wrap(ast, rvalue)); }