最近评论
正在载入评论列表...
![]() |
![]() |
因为通过实现4条命令你就可以认为这个语言是有效的,所以测试这种语言也并不需要花费很多的时间。下面是一段合理的测试脚本,它可以用于测定在下面的几页中一切是否正常。
PrintString "This is a command-based language."
PrintString "Therefore, this is a command-based script."
Newline
PrintString "...and it's really quite boring."
Newline
PrintStringLoop "This string has been repeated four times." 4
Newline
PrintString "Okay, press a key already and put us both out of our misery."
PrintString "The next demo is cooler, I swear."
WaitForKeyPress
是的,这段脚本有一点令人沮丧,但是它的确能够很好地完成任务。你已经编写出了第一段脚本程序,现在你可以编写一段程序来执行这段脚本了。