Skip to content

gfuf/eltech_compilers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies:

$ opam pin add GT https://github.com/Kakadu/GT.git -n -y

$ opam install camlp5 -y

$ opam install GT ocamlfind -y

Build & use:

$ make

$ gcc -m32 -c runtime.c

$ RUNTIME=. ./compiler file.expr

$ ./file

If make fails with an error which states that GT.Syntax.All cannot be found, make sure you initialized and configured opam:

$ opam init

$ eval `opam config env`

Ostap library:

$ opam pin add ostap https://github.com/dboulytchev/ostap.git -n -y

$ opam install ostap -y

About

Repository for Compilers course assignments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 59.2%
  • Assembly 36.9%
  • Makefile 3.6%
  • C 0.3%