Exemple #1
0
 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);
     //        }
 }
Exemple #2
0
    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);
        }
    }
Exemple #3
0
 public virtual expression as_expression(as_expression ast, int lvalue, int rvalue)
 {
     ast.expr = expression(ast.expr, lvalue, rvalue);
     return(wrap(ast, rvalue));
 }