Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val run_string :
string ->
?dirscope:string ->
?state:Types.evalstate ->
unit ->
Types.evt * Types.evalstate
Parse and evaluate a gobba expression from a string, in a default state, returning a couple consisting of an evaluated value (of type evt), that you can unpack using the Gobba.Typecheck.unpack_<name>
, and the new state resulting from the command evaluation. This is useful for embedding gobba in your ocaml programs.
val tree : Completion.Trie.t Stdlib.ref
module StringSet : sig ... end
val varnames : StringSet.t Stdlib.ref
val read_toplevel : unit -> Types.command list
Read a line from the CLI using ocamline and parse it
val repl_loop : Types.evalstate Stdlib.ref -> int -> bool -> unit
val repl : Types.evalstate -> int -> bool -> unit
val run_file :
string ->
Types.evalstate ->
int ->
bool ->
Types.evt * Types.evalstate * int
Runs a file, returning the eventual value