Résultat du TP en C sur Forth
| calcop.c | ||
| calcop.h | ||
| cmpop.c | ||
| cmpop.h | ||
| command.c | ||
| command.h | ||
| definitions.h | ||
| exec.c | ||
| exec.h | ||
| functions.c | ||
| functions.h | ||
| lexer.c | ||
| lexer.h | ||
| LICENSE | ||
| logic.c | ||
| logic.h | ||
| main.c | ||
| main.h | ||
| Makefile | ||
| num.c | ||
| num.h | ||
| pile.c | ||
| pile.h | ||
| pileInt.c | ||
| pileInt.h | ||
| prog.forth | ||
| README.md | ||
| show.c | ||
| show.h | ||
| stackops.c | ||
| stackops.h | ||
| state.c | ||
| state.h | ||
| test.sh | ||
C_TP_Forth
Résultat du TP en C sur Forth
Instruction pour tester et modifier le code localement
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
Écrire en Forth
Soit écrivez:
./main 'VOTRE CODE EN FORTH'
ou
make test
Tests automatisés
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.