huatw / eopl

interpreter code snippets in ocaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EOPL

Workflow

  1. string input => lexer.ml => tokens
  2. tokens => parser.ml => AST(represented in expr variant type)
  3. AST => interp => expressed value(represented in exp_val variant type)

Interpreters

Interp.interp "let f = proc (x) { x + 1 } in (f 5)"

About

interpreter code snippets in ocaml


Languages

Language:OCaml 97.9%Language:Makefile 2.1%