comparison Bison-Flex/BasicCompiler-MemoryBase/UTF8/test.txt @ 4:805d39d28230

add Compiler-stackbase
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 17 May 2011 08:00:38 +0900
parents
children
comparison
equal deleted inserted replaced
3:3cea2e8a0e4b 4:805d39d28230
1 'コメントテスト
2 rem これもコメント
3
4 ' 代入とrand関数のテスト
5 a = rand(10)
6 b = rand(10)
7
8 print a, b
9
10 ' if文
11 if a == b then
12 a = 100
13 else
14 b = 100
15 endif
16
17 print a, b
18
19 ' for文
20 for i=1 to 10
21 a = a + 1
22 next
23
24 print a, b
25
26 ' while文
27 while a != 0
28 a = a - 1
29 wend
30
31 print a, b
32
33 end