Compilateur en OCaml vers du MIPS
This repository has been archived on 2022-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2022-12-08 21:30:56 +01:00
tests update tests 2022-12-08 21:30:56 +01:00
.gitignore ignore asm files 2022-12-08 15:35:20 +01:00
.ocamlformat use ocamlformat 2022-12-06 22:22:48 +01:00
ast.ml add boolean support 2022-12-08 21:30:39 +01:00
baselib.ml use ocamlformat 2022-12-06 22:22:48 +01:00
compiler.ml add boolean support 2022-12-08 21:30:39 +01:00
lexer.mll add boolean support 2022-12-08 21:30:39 +01:00
main.ml Capitalize error messages 2022-12-08 19:54:57 +01:00
Makefile update tests 2022-12-08 21:30:56 +01:00
mips.ml * add neg 2022-12-08 19:54:17 +01:00
parser.mly add boolean support 2022-12-08 21:30:39 +01:00
README.md Add readme 2022-12-06 20:50:37 +01:00
semantics.ml add boolean support 2022-12-08 21:30:39 +01:00

Compilateur vers du MIPS en OCaml

Usage

Compilation

$ make

Utilisation

$ ./main.byte {fichier source} > sortie.s

Une fois le fichier assembleur créé, il est possible d'utiliser spim : spim -file sortie.s

Lance les tests

$ make test