aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/nani.tpc1
-rw-r--r--res/test-table-symboles.tpc5
-rw-r--r--res/test_add.tpc11
3 files changed, 15 insertions, 2 deletions
diff --git a/res/nani.tpc b/res/nani.tpc
new file mode 100644
index 0000000..dbb3731
--- /dev/null
+++ b/res/nani.tpc
@@ -0,0 +1 @@
/*Programme correct avec le compilateur mais qui ne devrait pas*/
diff --git a/res/test-table-symboles.tpc b/res/test-table-symboles.tpc
index 3c12144..b2cc31e 100644
--- a/res/test-table-symboles.tpc
+++ b/res/test-table-symboles.tpc
@@ -1,10 +1,11 @@
1/* test-table-symboles.tpc */ 1/* test-table-symboles.tpc */
2 2
3/* Test file for simplified translator of a declaration of variables in C */ 3/* Test file for simplified translator of a declaration of variables in C */
4 entier r1,b,s,c,r2 ; 4entier r1,b,s,c,r2 ;
5 caractere letter, digit, punct; 5caractere letter, digit, punct;
6 6
7entier main(void) { 7entier main(void) {
8
8 r1=12; 9 r1=12;
9 r2=24; 10 r2=24;
10 b=r1+r2; 11 b=r1+r2;
diff --git a/res/test_add.tpc b/res/test_add.tpc
new file mode 100644
index 0000000..01e0403
--- /dev/null
+++ b/res/test_add.tpc
@@ -0,0 +1,11 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4
5entier main(void) {
6 entier a,b,res;
7 a = 2;
8 b = 3;
9 res = a - b;
10 print(res);
11}