aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 13:59:04 +0200
committerAdam NAILI2018-06-06 13:59:04 +0200
commit7d8e0d62851ee37c284405740b56b704664cb6a9 (patch)
tree35c4bc0433a9ef7d5cff35ebd5a600ee68a00667
parent64d73526bf9d39ad9d3f04509f6656abde2240fd (diff)
downloadtpc-compiler-7d8e0d62851ee37c284405740b56b704664cb6a9.tar.gz
Adding more tests
-rw-r--r--res/test_print.tpc6
-rw-r--r--res/test_read.tpc3
2 files changed, 6 insertions, 3 deletions
diff --git a/res/test_print.tpc b/res/test_print.tpc
new file mode 100644
index 0000000..e75d93e
--- /dev/null
+++ b/res/test_print.tpc
@@ -0,0 +1,6 @@
1entier main(void) {
2 entier r1;
3 reade(r1);
4 print(r1);
5 return 0;
6}
diff --git a/res/test_read.tpc b/res/test_read.tpc
index 6ad3632..b88061f 100644
--- a/res/test_read.tpc
+++ b/res/test_read.tpc
@@ -1,6 +1,3 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4entier r1,b,s,c,r2 ; 1entier r1,b,s,c,r2 ;
5caractere letter, digit, punct; 2caractere letter, digit, punct;
6 3