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_add.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_add.tpc')
-rw-r--r-- | res/test_add.tpc | 11 |
1 files changed, 11 insertions, 0 deletions
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 | |||
5 | entier main(void) { | ||
6 | entier a,b,res; | ||
7 | a = 2; | ||
8 | b = 3; | ||
9 | res = a - b; | ||
10 | print(res); | ||
11 | } | ||