summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-04-06 14:47:12 +0100
committerAlasdair Armstrong2018-04-06 14:47:12 +0100
commit922fec6b584a9de72c42036fbb415fa3e06a7a4e (patch)
treea09c4c9411e7e47f48a5e14ec1850542c87eb23c /src
parent650d7affe4704959d177579957bef749c5499158 (diff)
Update sail.tex for wip latex output
Fix a bug in initial check which caused X() = y to expect an additional parameter. Some tweaks to sail2 emacs mode
Diffstat (limited to 'src')
-rw-r--r--src/initial_check.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/initial_check.ml b/src/initial_check.ml
index 12d56484..22e8bb16 100644
--- a/src/initial_check.ml
+++ b/src/initial_check.ml
@@ -555,7 +555,7 @@ and to_ast_lexp (k_env : kind Envmap.t) (def_ord : order) (Parse_ast.E_aux(exp,l
(match f with
| Parse_ast.Id(id) ->
(match List.map (to_ast_exp k_env def_ord) args with
- | [] -> LEXP_memory(to_ast_id f',[])
+ | [E_aux(E_lit (L_aux (L_unit, _)), _)] -> LEXP_memory(to_ast_id f',[])
| [E_aux(E_tuple exps,_)] -> LEXP_memory(to_ast_id f',exps)
| args -> LEXP_memory(to_ast_id f', args))
| _ -> typ_error l' "memory call on lefthand side of assignment must begin with an id" None None None)