diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bison-Flex/BasicCompiler-MemoryBase/UTF8/test.txt	Tue May 17 08:00:38 2011 +0900
@@ -0,0 +1,33 @@
+'コメントテスト
+rem これもコメント
+
+' 代入とrand関数のテスト
+a = rand(10)
+b = rand(10)
+
+print a, b
+
+' if文
+if a == b then
+	a = 100
+else
+	b = 100
+endif
+
+print a, b
+
+' for文
+for i=1 to 10
+	a = a + 1
+next
+
+print a, b
+
+' while文
+while a != 0
+	a = a - 1
+wend
+
+print a, b
+
+end