Types
module Syntax : sig ... end
Syntax of TINT expressions.
type state = {
syntax : Syntax.t;
prims : prims;
forms : forms;
active : char Prelude.Stack.t;
neutral : {ncomp}2 Prelude.Stack.t;
trace : bool;
implicit : bool;
warning : bool;
meta : char;
tty : Stdlib.in_channel option;
exiting : int option;
inchans : Stdlib.in_channel Stdlib__Map.Make(Prelude.String).t;
outchans : Stdlib.out_channel Stdlib__Map.Make(Prelude.String).t;
ln : int;
}
The type of TINT runtime state.
The interpreter refers to the command-line TINT interpreter, tint(1)
.
and prims = prim Stdlib__Map.Make(Prelude.String).t
The type of the TINT primitives store.
The default collection of opened in_channel
's (just stdin
).
The default collection of opened out_channel
's (just stdout
and stderr
).
val state :
?syntax:Syntax.t ->
?prims:prim Stdlib__Map.Make(Prelude.String).t ->
?forms:{form}7 Stdlib__Map.Make(Prelude.String).t ->
?active:char Prelude.Stack.t ->
?neutral:{ncomp}2 Prelude.Stack.t ->
?trace:bool ->
?implicit:bool ->
?warning:bool ->
unit ->
state
(state ())
returns a fresh TINT runtime state.
The optional parameters allow you override the default values of any of the fields.
val string_of_neutral : Syntax.t -> {ncomp}2 Prelude.Stack.t -> string
val string_of_state : state -> string