Résultat du TP en C sur Forth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nbillard 7ded0a6618 More instructive README.md 11 months ago
LICENSE Initial commit 11 months ago
Makefile adding all the code 11 months ago
README.md More instructive README.md 11 months ago
calcop.c adding all the code 11 months ago
calcop.h adding all the code 11 months ago
cmpop.c adding all the code 11 months ago
cmpop.h adding all the code 11 months ago
command.c adding all the code 11 months ago
command.h adding all the code 11 months ago
definitions.h adding all the code 11 months ago
exec.c adding all the code 11 months ago
exec.h adding all the code 11 months ago
functions.c adding all the code 11 months ago
functions.h adding all the code 11 months ago
lexer.c adding all the code 11 months ago
lexer.h adding all the code 11 months ago
logic.c adding all the code 11 months ago
logic.h adding all the code 11 months ago
main.c adding all the code 11 months ago
main.h adding all the code 11 months ago
num.c adding all the code 11 months ago
num.h adding all the code 11 months ago
pile.c adding all the code 11 months ago
pile.h adding all the code 11 months ago
pileInt.c adding all the code 11 months ago
pileInt.h adding all the code 11 months ago
prog.forth adding all the code 11 months ago
show.c adding all the code 11 months ago
show.h adding all the code 11 months ago
stackops.c adding all the code 11 months ago
stackops.h adding all the code 11 months ago
state.c adding all the code 11 months ago
state.h adding all the code 11 months ago
test.sh adding all the code 11 months ago

README.md

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.