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 1 month ago
LICENSE Initial commit 1 month ago
Makefile adding all the code 1 month ago
README.md More instructive README.md 1 month ago
calcop.c adding all the code 1 month ago
calcop.h adding all the code 1 month ago
cmpop.c adding all the code 1 month ago
cmpop.h adding all the code 1 month ago
command.c adding all the code 1 month ago
command.h adding all the code 1 month ago
definitions.h adding all the code 1 month ago
exec.c adding all the code 1 month ago
exec.h adding all the code 1 month ago
functions.c adding all the code 1 month ago
functions.h adding all the code 1 month ago
lexer.c adding all the code 1 month ago
lexer.h adding all the code 1 month ago
logic.c adding all the code 1 month ago
logic.h adding all the code 1 month ago
main.c adding all the code 1 month ago
main.h adding all the code 1 month ago
num.c adding all the code 1 month ago
num.h adding all the code 1 month ago
pile.c adding all the code 1 month ago
pile.h adding all the code 1 month ago
pileInt.c adding all the code 1 month ago
pileInt.h adding all the code 1 month ago
prog.forth adding all the code 1 month ago
show.c adding all the code 1 month ago
show.h adding all the code 1 month ago
stackops.c adding all the code 1 month ago
stackops.h adding all the code 1 month ago
state.c adding all the code 1 month ago
state.h adding all the code 1 month ago
test.sh adding all the code 1 month 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.