aboutsummaryrefslogtreecommitdiff
path: root/res/test-table-symboles.tpc
diff options
context:
space:
mode:
authorAdam NAILI2018-04-22 14:49:42 +0200
committerAdam NAILI2018-04-22 14:49:42 +0200
commit40f423a4b3b1e64e8424ab239cc14ecc5077640f (patch)
treec7da7c2eed97d62cc8ab2e003293935cda5a93dc /res/test-table-symboles.tpc
parentc0802bc17f856546b95a5b51252f7a35d9e1ab10 (diff)
downloadtpc-compiler-40f423a4b3b1e64e8424ab239cc14ecc5077640f.tar.gz
Beginning of the symbol table implementation
Diffstat (limited to 'res/test-table-symboles.tpc')
-rw-r--r--res/test-table-symboles.tpc13
1 files changed, 13 insertions, 0 deletions
diff --git a/res/test-table-symboles.tpc b/res/test-table-symboles.tpc
new file mode 100644
index 0000000..3c12144
--- /dev/null
+++ b/res/test-table-symboles.tpc
@@ -0,0 +1,13 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4 entier r1,b,s,c,r2 ;
5 caractere letter, digit, punct;
6
7entier main(void) {
8 r1=12;
9 r2=24;
10 b=r1+r2;
11 punct='.';
12 return b;
13}