介绍 |
BasicPlus :Basic编译快手一basic语言运行器,可用于解释执行较简单的代码! 【 支持语句】 If logic Then exp Elseif logic2 Then exp Else exp End If If logic Then exp If logic Then exp Else exp Select Case exp Case n exp Case m To n exp Case m, n, k exp Case Else exp End Select While logic exp Exit Do Wend Do While logic exp Exit Do Loop Do exp Exit Do Loop Until For var = exp To exp [ Step n ] exp Exit For Next 10 exp .... Goto 10 Gosub 20 .... 20 exp exp Return Input var Input string, var Input string; string, var, string Print exp Print xxx; exp; yyy Print logic Print ... Stop ... ... End ... 支持逻辑表达式: x = y x y x y x y x = y x = y x And y x Or y Not x x Xor y (exp) (exp) 支持算术表达式 exp a + b a - b a b a b a ^ b a Mod b Sqr (a) Abs (a) var = exp '注释、赋值表达式 (exp) + (exp)
|