summaryrefslogtreecommitdiff
path: root/src/parser2.mly
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser2.mly')
-rw-r--r--src/parser2.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser2.mly b/src/parser2.mly
index ebe829c2..34ab8732 100644
--- a/src/parser2.mly
+++ b/src/parser2.mly
@@ -714,6 +714,8 @@ exp:
{ mk_exp (E_let ($2, $4)) $startpos $endpos }
| Var atomic_exp Eq exp In exp
{ mk_exp (E_var ($2, $4, $6)) $startpos $endpos }
+ | Star atomic_exp
+ { mk_exp (E_deref $2) $startpos $endpos }
| Lcurly block Rcurly
{ mk_exp (E_block $2) $startpos $endpos }
| Return exp