gameboy1024 / minijavac

A school project where we developed a compiler for a fictional language called minijava.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The minijavac compiler.

A compilation project for Thrid year students of Telecom Bretagne.

'ocamlbuild Main.byte' (or native) to build the compiler. The main file
is Main/Main.ml, it should not be modified. It opens the given file,
creates a lexing buffer, initializes the location and call the compile
function of the module Main/compile.ml. It is this function that you
should modify to call your parser.

'ocamlbuild Main.byte -- <filename>' (or native) to build and then execute
the compiler on the file given. By default, the program searches for
file with the extension .mjava and append it to the given filename if
it does not end with it.

If you want to reuse an existing ocaml library. Start by installing it
with opam. For example, to use colored terminal output you
use 'opam install ANSITerminal'.
Then you must inform ocamlbuild to use the ocamlfind tool :
'ocamlbuild -use-ocamlfind Main.byttests/TestsUnitairesParsing.mjava'
et vous devez ajouter au fichier _tags la librarie en question par exemple :
true: package(ANSITerminal)

About

A school project where we developed a compiler for a fictional language called minijava.


Languages

Language:OCaml 100.0%