- string input =>
lexer.ml
=> tokens - tokens =>
parser.ml
=> AST(represented inexpr
variant type) - AST =>
interp
=> expressed value(represented inexp_val
variant type)
Interp.interp "let f = proc (x) { x + 1 } in (f 5)"
interpreter code snippets in ocaml
lexer.ml
=> tokensparser.ml
=> AST(represented in expr
variant type)interp
=> expressed value(represented in exp_val
variant type)Interp.interp "let f = proc (x) { x + 1 } in (f 5)"
interpreter code snippets in ocaml