diff options
author | Adam NAILI | 2018-06-06 13:59:04 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-06 13:59:04 +0200 |
commit | 7d8e0d62851ee37c284405740b56b704664cb6a9 (patch) | |
tree | 35c4bc0433a9ef7d5cff35ebd5a600ee68a00667 | |
parent | 64d73526bf9d39ad9d3f04509f6656abde2240fd (diff) | |
download | tpc-compiler-7d8e0d62851ee37c284405740b56b704664cb6a9.tar.gz |
Adding more tests
-rw-r--r-- | res/test_print.tpc | 6 | ||||
-rw-r--r-- | res/test_read.tpc | 3 |
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 @@ | |||
1 | entier 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 */ | ||
4 | entier r1,b,s,c,r2 ; | 1 | entier r1,b,s,c,r2 ; |
5 | caractere letter, digit, punct; | 2 | caractere letter, digit, punct; |
6 | 3 | ||