Nuclear-Squid /
dames-chinoises
C'est un projet de fin de semestre à la fac pour mon cours d'OCaml, je vais péter un cable si je continue à coder cette merde mais je vais pas écrire 450+ lignes de code sans le mettre sur github...
Loading repository data…
hachibane / repository
C'est un projet qui consiste à construire un compilateur de Java en O'caml. Le projet regroupe les membres suivants : Hamza Achibane, Hamza Sahri, Khaled Bousrih, Khalid Majdoub et Robin You.
C'est un projet qui consiste à construire un compilateur de Java en O'caml. Le projet regroupe les membres suivants : Hamza Achibane, Hamza Sahri, Khaled Bousrih, Khalid Majdoub et Robin You.
Short description :
The minijavac compiler.
A compilation project for Third 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 -- ' (or native) to build and then execute the compiler on the file given. By default, the program searches for file with the extension .java 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.byte -- tests/UnFichierDeTest.java' et vous devez ajouter au fichier _tags la bibliothèque en question par exemple : true: package(ANSITerminal)
to test the parser, run the following command ./Main.byte (.native) ./TESTS/TestFile.Java the tests files are in the TESTS folder
to generate the AST : menhir --dump parser.mly
to simply test the lexer : ocamllex lexer.mll utop use "lexer.ml" compile "file.java"
Selected from shared topics, language and repository description—not editorial ratings.
Nuclear-Squid /
C'est un projet de fin de semestre à la fac pour mon cours d'OCaml, je vais péter un cable si je continue à coder cette merde mais je vais pas écrire 450+ lignes de code sans le mettre sur github...
Violeta-Charifa5894 /
C'est un TP pour le projet ocaml
daminfer /
Le but de ce projet est d’implémenter le noyau minimal d’un logiciel ressemblant à git, c'est-à-dire permettant de gérer les versions d’un ensemble de fichiers. Ce git ne fonctionnera qu’en local pour un seul utilisateur.