diff options
author | Adam NAILI | 2018-06-05 23:03:13 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-05 23:03:13 +0200 |
commit | 4cc53658a9503191f41945914e6223ccc5a95717 (patch) | |
tree | 3e0f146fdcfc66f35c8bc3a5d7a1aa2d2d1d50bb /res/test_while.tpc | |
parent | 864653f00dff0a8a1f37d8e9a732c1da8309a930 (diff) | |
download | tpc-compiler-4cc53658a9503191f41945914e6223ccc5a95717.tar.gz |
While handling
Diffstat (limited to 'res/test_while.tpc')
-rw-r--r-- | res/test_while.tpc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/test_while.tpc b/res/test_while.tpc new file mode 100644 index 0000000..25d04c6 --- /dev/null +++ b/res/test_while.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 | |||
5 | entier main(void) { | ||
6 | entier i; | ||
7 | i = 0; | ||
8 | while(i<=5){ | ||
9 | print(i); | ||
10 | i = i + 1; | ||
11 | } | ||
12 | return 0; | ||
13 | } | ||