diff options
author | Adam NAILI | 2018-05-04 01:03:21 +0200 |
---|---|---|
committer | Adam NAILI | 2018-05-04 01:03:21 +0200 |
commit | c9c4fbbde6e4f4f3942777cd9930cf40375e0ea9 (patch) | |
tree | dc6c860b2934dadd75a000bd797934371a651f64 /res/test-table-symboles.tpc | |
parent | 2793b31c330396956e4fbeef454e26a37b055ebd (diff) | |
download | tpc-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.tpc | 5 |
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 ; | 4 | entier r1,b,s,c,r2 ; |
5 | caractere letter, digit, punct; | 5 | caractere letter, digit, punct; |
6 | 6 | ||
7 | entier main(void) { | 7 | entier main(void) { |
8 | |||
8 | r1=12; | 9 | r1=12; |
9 | r2=24; | 10 | r2=24; |
10 | b=r1+r2; | 11 | b=r1+r2; |