aboutsummaryrefslogtreecommitdiff
path: root/res/test-table-symboles.tpc
diff options
context:
space:
mode:
authorAdam NAILI2018-05-04 01:03:21 +0200
committerAdam NAILI2018-05-04 01:03:21 +0200
commitc9c4fbbde6e4f4f3942777cd9930cf40375e0ea9 (patch)
treedc6c860b2934dadd75a000bd797934371a651f64 /res/test-table-symboles.tpc
parent2793b31c330396956e4fbeef454e26a37b055ebd (diff)
downloadtpc-compiler-c9c4fbbde6e4f4f3942777cd9930cf40375e0ea9.tar.gz
Add sub working (local/global not fully implemented, checking type function available
Diffstat (limited to 'res/test-table-symboles.tpc')
-rw-r--r--res/test-table-symboles.tpc5
1 files changed, 3 insertions, 2 deletions
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;