diff options
author | Adam NAILI | 2018-06-06 14:31:40 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-06 14:31:40 +0200 |
commit | 901e95ebf54575d24e533383fabfc5e9d916bf39 (patch) | |
tree | 45498bf25c66fe97c81ff720458250cc363e136b /res/test_while_ok.tpc | |
parent | cc1b72c1093dfd3bb0f41802a6a012402fa9717e (diff) | |
parent | 8a5ccc3b6e5e7a3ad064cc5cce1c4a1a9ac74aa8 (diff) | |
download | tpc-compiler-901e95ebf54575d24e533383fabfc5e9d916bf39.tar.gz |
Merge branch 'master' of https://github.com/pacien/upem-compil-tpc
Diffstat (limited to 'res/test_while_ok.tpc')
-rw-r--r-- | res/test_while_ok.tpc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/test_while_ok.tpc b/res/test_while_ok.tpc new file mode 100644 index 0000000..25d04c6 --- /dev/null +++ b/res/test_while_ok.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 | } | ||