Compare commits
7 Commits
7129943522
...
df39308b7a
| Author | SHA1 | Date | |
|---|---|---|---|
| df39308b7a | |||
| 75417c7699 | |||
| 15efe3efdd | |||
| 2e1c66f7b6 | |||
| a4c10bbf57 | |||
| 73d9260b1f | |||
| 58975feee5 |
@ -1 +1 @@
|
|||||||
|
profile = compact
|
||||||
1
.ocamlformat-ignore
Normal file
1
.ocamlformat-ignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
init.ml
|
||||||
7
README
7
README
@ -2,9 +2,4 @@
|
|||||||
|
|
||||||
- `console/rootstore` must exist at `../rootstore`
|
- `console/rootstore` must exist at `../rootstore`
|
||||||
|
|
||||||
$ dune exec ./main.exe
|
$ dune exec ./boot.exe
|
||||||
|
|
||||||
Type in:
|
|
||||||
`#use "init.ml"`
|
|
||||||
Ctrl-Enter runs the command
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,2 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let eval = (Topinf.init Format.std_formatter) Format.std_formatter in
|
let eval = (Topinf.init Format.std_formatter) Format.std_formatter in
|
||||||
eval "#use \"init.ml\";;";
|
eval "#use \"init.ml\";;"
|
||||||
15
dune
15
dune
@ -13,24 +13,33 @@
|
|||||||
tgls.tgles2
|
tgls.tgles2
|
||||||
wall
|
wall
|
||||||
zed
|
zed
|
||||||
|
lambda-term
|
||||||
irmin-unix
|
irmin-unix
|
||||||
ocaml-compiler-libs.common
|
ocaml-compiler-libs.common
|
||||||
ocaml-compiler-libs.bytecomp
|
ocaml-compiler-libs.bytecomp
|
||||||
ocaml-compiler-libs.toplevel))
|
ocaml-compiler-libs.toplevel))
|
||||||
|
|
||||||
(executable
|
(executable
|
||||||
(name test)
|
(name boot)
|
||||||
(modes byte)
|
(modes byte)
|
||||||
(modules test)
|
(modules boot)
|
||||||
(link_flags (-linkall))
|
(link_flags (-linkall))
|
||||||
(libraries
|
(libraries
|
||||||
|
lambda-term
|
||||||
topinf))
|
topinf))
|
||||||
|
|
||||||
|
|
||||||
(library
|
(library
|
||||||
(name topinf)
|
(name topinf)
|
||||||
(modes byte)
|
(modes byte)
|
||||||
(modules topinf)
|
(modules topinf)
|
||||||
(libraries
|
(libraries
|
||||||
fmt
|
fmt
|
||||||
|
tsdl
|
||||||
|
tgls.tgles2
|
||||||
|
wall
|
||||||
|
zed
|
||||||
|
lambda-term
|
||||||
|
irmin-unix
|
||||||
|
ocaml-compiler-libs.common
|
||||||
|
ocaml-compiler-libs.bytecomp
|
||||||
ocaml-compiler-libs.toplevel))
|
ocaml-compiler-libs.toplevel))
|
||||||
|
|||||||
14
init.ml
14
init.ml
@ -1,14 +1,16 @@
|
|||||||
(* $Id$ -*- tuareg -*- *)
|
(* $Id$ -*- tuareg -*- *)
|
||||||
|
|
||||||
#directory "/home/cqc/p/pinephone/komm/komm/_build/default/.topinf.objs/byte";;
|
#use_output "dune top | grep -v \"ocamltoplevel.cma\\|ocaml_toplevel.cma\\|topinf.cma\"";; (* grep to remove the topinf.cma which fuck this shit all up *)
|
||||||
open Topinf;;
|
open Topinf;;
|
||||||
let print_directives () =
|
let print_directives () =
|
||||||
Format.eprintf "directive_info_table:@.";
|
Format.printf "directive_info_table:@.";
|
||||||
Hashtbl.iter (fun n _ -> Format.eprintf "\t%s@." n) Topinf.directive_info_table;;
|
Hashtbl.iter (fun n _ -> Format.printf "\t%s@." n) Topinf.directive_info_table;;
|
||||||
|
|
||||||
#directory "+compiler-libs";;
|
#directory "+compiler-libs";;
|
||||||
|
|
||||||
let print_modules () =
|
let print_modules () =
|
||||||
Format.eprintf "Env.fold_modules:\n";
|
Format.printf "Env.fold_modules !Topinf.toplevel_env :\n";
|
||||||
Env.fold_modules (fun modname _ _ () -> Format.eprintf "\t%s@." modname) None !Topinf.toplevel_env ();;
|
Env.fold_modules (fun modname _ _ () -> Format.printf "\t%s@." modname) None !Topinf.toplevel_env ();;
|
||||||
print_modules ();;
|
|
||||||
|
#use_silently "main.ml";;
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
(See module Translmod.) *)
|
(See module Translmod.) *)
|
||||||
val getvalue : string -> Obj.t
|
val getvalue : string -> Obj.t
|
||||||
val setvalue : string -> Obj.t -> unit
|
val setvalue : string -> Obj.t -> unit
|
||||||
(* End accessors for table of toplevel value bindings that must be first in the module signature *)
|
(* End of: accessors for table of toplevel value bindings that must be first in the module signature *)
|
||||||
|
|
||||||
val print_toplevel_value_bindings : Format.formatter -> unit
|
val print_toplevel_value_bindings : Format.formatter -> unit
|
||||||
|
|
||||||
@ -22,4 +22,10 @@ type directive_fun =
|
|||||||
|
|
||||||
type directive_info = { section : string; doc : string }
|
type directive_info = { section : string; doc : string }
|
||||||
|
|
||||||
|
val add_directive : Misc.filepath -> directive_fun -> directive_info -> unit
|
||||||
|
|
||||||
val directive_info_table : (string, directive_info) Hashtbl.t
|
val directive_info_table : (string, directive_info) Hashtbl.t
|
||||||
|
|
||||||
|
val ppf : Format.formatter ref
|
||||||
|
|
||||||
|
val eval : evalenv option ref
|
||||||
|
|||||||
Reference in New Issue
Block a user