Accept "e when not x" for "e whenot x"

This commit is contained in:
Timothy Bourke 2017-01-21 18:12:06 +01:00 committed by Gwenaël Delaval
parent 9de1a96843
commit 3d75602a0d

View file

@ -550,6 +550,8 @@ _exp:
{ Ewhen (e, Q Initial.ptrue, ce) }
| e=exp WHENOT ce=IDENT
{ Ewhen (e, Q Initial.pfalse, ce) }
| e=exp WHEN NOT ce=IDENT
{ Ewhen (e, Q Initial.pfalse, ce) }
| MERGE n=IDENT hs=merge_handlers
{ Emerge (n, hs) }
| exp INFIX1 exp