From 666062ce4d97fe48307d1feb5bb4eb32087b177a Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Fri, 30 Nov 2018 19:33:50 +0000 Subject: Remove constraint synonyms They weren't needed for ASL parser like I thought they would be, and they increase the complexity of dealing with constraints throughout Sail, so just remove them. Also fix some compiler warnings --- src/parser.mly | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/parser.mly') diff --git a/src/parser.mly b/src/parser.mly index 8287060c..cd655217 100644 --- a/src/parser.mly +++ b/src/parser.mly @@ -337,8 +337,6 @@ nc_and: { $1 } atomic_nc: - | Where id Lparen typ_list Rparen - { mk_nc (NC_app ($2, $4)) $startpos $endpos } | True { mk_nc NC_true $startpos $endpos } | False @@ -1454,8 +1452,6 @@ def: { DEF_kind (KD_aux (KD_nabbrev (K_aux (K_kind [BK_aux (BK_int, loc $startpos($1) $endpos($1))], loc $startpos($1) $endpos($1)), $2, mk_namesectn, $4), loc $startpos $endpos)) } - | Constraint id Lparen kid_list Rparen Eq nc - { DEF_constraint ($2, $4, $7) } | Mutual Lcurly fun_def_list Rcurly { DEF_internal_mutrec $3 } | Pragma -- cgit v1.2.3