grammar.yab

来自「Linux下VB解释器」· YAB 代码 · 共 24 行

YAB
24
字号
#!./yabasic#   This demo just tests, if the grammar is still okay;#   it need not run, only compile. So we exit right away :-)exit 0# test for bug in version 2.680if (!eof(1)) exitif (!eof(#1)) exitprint #foo bar# test for expression bug from 2.681if (1<2 and 7) exit# bug in 2.690print a/(b*c)# variuous forms of i/oclose #1:close #a+1:close 1:close aopen #1,"a":open #a,"a":open #(a+1),"a"print #1 "a":print #a "a":print #(a+1) "a"input #1 a:input #a a:input #(a+1) a

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?