aboutsummaryrefslogtreecommitdiff
path: root/res/test_add.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_add.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_add.tpc')
-rw-r--r--res/test_add.tpc11
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
5entier main(void) {
6 entier a,b,res;
7 a = 2;
8 b = 3;
9 res = a - b;
10 print(res);
11}