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