From 386bf40374e0af3944fd8c0cfc365e5fff73b4ee Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sun, 23 Nov 2014 19:20:53 +0100 Subject: [PATCH] Any expression can be case condition. --- Monicelli.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Monicelli.y b/Monicelli.y index 7a22ff3..1fd0c53 100644 --- a/Monicelli.y +++ b/Monicelli.y @@ -111,10 +111,7 @@ cases: case_stmt | case_stmt cases ; case_stmt: - case_hp COLON NEWLINE statements -; -case_hp: - numeric | variable + expression COLON NEWLINE statements ; fun_call: FUNCALL ID args | FUNCALL ID