Any expression can be case condition.

This commit is contained in:
Stefano Sanfilippo 2014-11-23 19:20:53 +01:00
parent c7fec8c9e0
commit 386bf40374

View File

@ -111,10 +111,7 @@ cases:
case_stmt | case_stmt cases case_stmt | case_stmt cases
; ;
case_stmt: case_stmt:
case_hp COLON NEWLINE statements expression COLON NEWLINE statements
;
case_hp:
numeric | variable
; ;
fun_call: fun_call:
FUNCALL ID args | FUNCALL ID FUNCALL ID args | FUNCALL ID