module Interp_util: sig
.. end
Support code for writing an interpreter for a functional language.
type
id = string
val pp_id : Format.formatter -> id -> Ppx_deriving_runtime.unit
val show_id : id -> Ppx_deriving_runtime.string
type
op2 =
| |
LT |
| |
GT |
| |
Eq |
| |
Add |
| |
Sub |
| |
Mul |
| |
Div |
| |
Mod |
val pp_op2 : Format.formatter -> op2 -> Ppx_deriving_runtime.unit
val show_op2 : op2 -> Ppx_deriving_runtime.string
type
const =
| |
Int of int |
| |
Bool of bool |
val pp_const : Format.formatter -> const -> Ppx_deriving_runtime.unit
val show_const : const -> Ppx_deriving_runtime.string
type
exp =
val pp_exp : Format.formatter -> exp -> Ppx_deriving_runtime.unit
val show_exp : exp -> Ppx_deriving_runtime.string
val from_string : string -> exp
val from_file : string -> exp