Skip to content

A simple imp compiler / interpreter starting point

Notifications You must be signed in to change notification settings

Checkmate50/Imp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A framework for a simple (IMP language)[https://www.cs.cornell.edu/courses/cs6110/2019sp/lectures/lec08.pdf] interpreter in OCaml.

OCaml 4.04 or higher required

Set Up

We need Dune and Menhir:

$ opam install dune
$ apt-get install m4  # On Debian, for example.
$ opam install menhir

Build by typing:

$ make

Now you can use dune exec bin/imp.bc to run the interpreter. Or you can install a imp executable:

$ make build

Now imp should be available on your path. Simply run imp file.imp to interpret that file.

About

A simple imp compiler / interpreter starting point

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published