diff options
| author | Alasdair | 2019-05-13 23:29:15 +0100 |
|---|---|---|
| committer | Alasdair | 2019-05-13 23:29:15 +0100 |
| commit | 3677cfc13e19efe650488a3a25917324bd6ccef7 (patch) | |
| tree | 6f40da5b3c7280652ab72bdd861a5cd7dd4b5b21 /src/initial_check.ml | |
| parent | df7101474911964e7d8dbf5b6fd3de3ed66b7fc8 (diff) | |
Parse dereferences in orderinary expressions
Diffstat (limited to 'src/initial_check.ml')
| -rw-r--r-- | src/initial_check.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/initial_check.ml b/src/initial_check.ml index 790a6624..70252a1a 100644 --- a/src/initial_check.ml +++ b/src/initial_check.ml @@ -411,7 +411,8 @@ and to_ast_exp ctx (P.E_aux(exp,l) : P.exp) = E_internal_return(to_ast_exp ctx exp) else raise (Reporting.err_general l "Internal return construct found without -dmagic_hash") - | _ -> raise (Reporting.err_unreachable l __POS__ "Unparsable construct in to_ast_exp") + | P.E_deref exp -> + E_app (Id_aux (Id "__deref", l), [to_ast_exp ctx exp]) ), (l,())) and to_ast_measure ctx (P.Measure_aux(m,l)) : unit internal_loop_measure = |
