public override void DoVisit(AST_UnaryOpExp ast) { VisitChildren(ast); switch (ast.type) { case EnumUnaryOp.NOT: Emit(Opcodes.UnaryNot); break; case EnumUnaryOp.NEG: Emit(Opcodes.UnaryNeg); break; default: throw new Exception("Not supported unary type: " + ast.type); } }
public override void DoVisit(AST_UnaryOpExp node) { Console.Write("(UOP " + node.type); VisitChildren(node); Console.Write(")"); }
public abstract void DoVisit(AST_UnaryOpExp ast);