summaryrefslogtreecommitdiff
path: root/src/initial_check.mli
diff options
context:
space:
mode:
Diffstat (limited to 'src/initial_check.mli')
-rw-r--r--src/initial_check.mli12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/initial_check.mli b/src/initial_check.mli
index 01cf3bec..5466dece 100644
--- a/src/initial_check.mli
+++ b/src/initial_check.mli
@@ -54,8 +54,20 @@ open Ast_util
val opt_undefined_gen : bool ref
val opt_magic_hash : bool ref
+(* This is a bit of a hack right now - it ensures that the undefiend
+ builtins (undefined_vector etc), only get added to the ast
+ once. The original assumption in sail is that the whole AST gets
+ processed at once (therefore they could only get added once), and
+ this isn't true any more with the interpreter. This needs to be
+ public so the interpreter can set it back to false if it unloads
+ all the loaded files. *)
+val have_undefined_builtins : bool ref
+
+val ast_of_def_string : order -> string -> unit defs
val process_ast : order -> Parse_ast.defs -> unit defs
val val_spec_ids : 'a defs -> IdSet.t
val val_spec_of_string : order -> id -> string -> unit def
+
+val exp_of_string : order -> string -> unit exp