diff --git a/Monicelli.y b/Monicelli.y index 3f74a1a..7a22ff3 100644 --- a/Monicelli.y +++ b/Monicelli.y @@ -36,7 +36,6 @@ extern void emit(const char *, ...); %start program -%type expression; %type NUMBER; %type FLOAT; %type ID; @@ -121,14 +120,10 @@ fun_call: FUNCALL ID args | FUNCALL ID ; abort_stmt: - ABORT { - emit("exit(1);\n"); - } + ABORT ; assert_stmt: - ASSERT_BEGIN expression ASSERT_END { - emit("assert(", $2, ");\n"); - } + ASSERT_BEGIN expression ASSERT_END ; expression: numeric |