MiniC
Fonctionnalités
- Declaration des types de bases (int, char, float, bool)
- Declaration des fonctions
- Conditions if, else, else if
- Boucle while
- Fonctions natives :
_add_sub_mul_div_add_sub_mul_div_xor_or_and_seq_sne_sge_sgt_sle_slt_mod_neg_notputsputigeti
Tests
Test game (not really)
$ ocamlbuild -use-menhir test.byte
$ ./test.byte tests/game.test > t.s
$ spim t.s
(spim) load "t.s"
(spim) run
Autres tests (sans user input)
$ ./build.sh newt
$ ./build.sh puiss
Description
Languages
OCaml
99.5%
Shell
0.5%