From 03d40b0ad6542abe37b23f7be2aff2d49d39b39d Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sun, 23 Nov 2014 19:29:48 +0100 Subject: [PATCH] Statements can be empty. --- Monicelli.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Monicelli.y b/Monicelli.y index fe304be..b4ea2f5 100644 --- a/Monicelli.y +++ b/Monicelli.y @@ -66,7 +66,8 @@ statements: ; statement: var_decl | assign_stmt | print_stmt | input_stmt | return_stmt | - loop_stmt | branch_stmt | fun_call | abort_stmt | assert_stmt + loop_stmt | branch_stmt | fun_call | abort_stmt | assert_stmt | + /* epsilon */ ; var_decl: VARDECL pointer ID COMMA TYPENAME var_init