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
_not
puts
puti
geti
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%