diff --git a/heap_lang/notation.v b/heap_lang/notation.v index 09b9314e3f70c1769e4a3e17cce7127860809325..ebdb983b9ba8b3164864c412cffad376d4154d3a 100644 --- a/heap_lang/notation.v +++ b/heap_lang/notation.v @@ -25,7 +25,8 @@ Coercion of_val : val >-> expr. pretty printing. *) Notation "( e1 , e2 , .. , en )" := (Pair .. (Pair e1 e2) .. en) : lang_scope. Notation "' l" := (Lit l%Z) (at level 8, format "' l"). -Notation "'match:' e0 'with' x1 => e1 | x2 => e2 'end'" := (Case e0 x1 e1 x2 e2) +Notation "'match:' e0 'with' 'injL' x1 => e1 | 'injR' x2 => e2 'end'" := + (Case e0 x1 e1 x2 e2) (e0, x1, e1, x2, e2 at level 200) : lang_scope. Notation "' l" := (LitV l%Z) (at level 8, format "' l"). Notation "'()" := (Lit LitUnit) (at level 0).