summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Kerneis2014-04-01 14:21:38 +0100
committerGabriel Kerneis2014-04-01 14:21:38 +0100
commitc8fbe777c32bfa6355349110e14f0244090421da (patch)
tree343e998f82d1592489d27ea060244f5d96ea65e6 /src
parent5bdf89dea0ab69f5a91faa356d8cf82bf39ec3c5 (diff)
Fix parsing of nexp constraints
Diffstat (limited to 'src')
-rw-r--r--src/parser.mly6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.mly b/src/parser.mly
index fb4c322e..60f50737 100644
--- a/src/parser.mly
+++ b/src/parser.mly
@@ -965,11 +965,11 @@ nums:
{ $1::$3 }
nexp_constraint:
- | typ Eq typ
+ | nexp_typ Eq nexp_typ
{ NC_aux(NC_fixed($1,$3), loc () ) }
- | typ GtEq typ
+ | nexp_typ GtEq nexp_typ
{ NC_aux(NC_bounded_ge($1,$3), loc () ) }
- | typ LtEq typ
+ | nexp_typ LtEq nexp_typ
{ NC_aux(NC_bounded_le($1,$3), loc () ) }
| tyvar IN Lcurly nums Rcurly
{ NC_aux(NC_nat_set_bounded($1,$4), loc ()) }