-
Notifications
You must be signed in to change notification settings - Fork 1
gameboy1024/minijavac
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published