|
11 months ago | |
---|---|---|
LICENSE | 11 months ago | |
Makefile | 11 months ago | |
README.md | 11 months ago | |
calcop.c | 11 months ago | |
calcop.h | 11 months ago | |
cmpop.c | 11 months ago | |
cmpop.h | 11 months ago | |
command.c | 11 months ago | |
command.h | 11 months ago | |
definitions.h | 11 months ago | |
exec.c | 11 months ago | |
exec.h | 11 months ago | |
functions.c | 11 months ago | |
functions.h | 11 months ago | |
lexer.c | 11 months ago | |
lexer.h | 11 months ago | |
logic.c | 11 months ago | |
logic.h | 11 months ago | |
main.c | 11 months ago | |
main.h | 11 months ago | |
num.c | 11 months ago | |
num.h | 11 months ago | |
pile.c | 11 months ago | |
pile.h | 11 months ago | |
pileInt.c | 11 months ago | |
pileInt.h | 11 months ago | |
prog.forth | 11 months ago | |
show.c | 11 months ago | |
show.h | 11 months ago | |
stackops.c | 11 months ago | |
stackops.h | 11 months ago | |
state.c | 11 months ago | |
state.h | 11 months ago | |
test.sh | 11 months ago |
Résultat du TP en C sur Forth
D’abord, il faut télécharger le code. Pour cela, tapez la commande suivante dans un terminal.
git clone https://git.etud.insa-toulouse.fr/nbillard/C_TP_Forth.git
Compilez ensuite le code.
cd C_TP_Forth
make
Soit écrivez:
./main 'VOTRE CODE EN FORTH'
ou
make test
Les tests automitisées sont écris dans le fichier test.sh
La ligne set -x
permet d’écrire la commande qui va être executer.
set +x
remet le mode en mode habituel.