Browse Source

More instructive README.md

nbillard 1 year ago
parent
commit
7ded0a6618
1 changed files with 36 additions and 1 deletions
  1. 36
    1
      README.md

+ 36
- 1
README.md View File

1
 # C_TP_Forth
1
 # C_TP_Forth
2
 
2
 
3
-Résultat du TP en C sur Forth
3
+Résultat du TP en C sur Forth
4
+
5
+## Instruction pour tester et modifier le code localement
6
+
7
+D'abord, il faut télécharger le code. Pour cela, tapez la commande suivante dans un terminal.
8
+
9
+``` sh
10
+git clone https://git.etud.insa-toulouse.fr/nbillard/C_TP_Forth.git
11
+```
12
+
13
+Compilez ensuite le code.
14
+
15
+``` sh
16
+cd C_TP_Forth
17
+make
18
+```
19
+
20
+## Écrire en Forth
21
+
22
+Soit écrivez:
23
+
24
+``` sh
25
+./main 'VOTRE CODE EN FORTH'
26
+```
27
+
28
+ou
29
+
30
+``` sh
31
+make test
32
+```
33
+
34
+## Tests automatisés
35
+
36
+Les tests automitisées sont écris dans le fichier **test.sh**
37
+La ligne `set -x` permet d'écrire la commande qui va être executer.
38
+`set +x` remet le mode en mode habituel.

Loading…
Cancel
Save