モバイル端末で動作する Tiny BASIC
ver 2.x is released
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
command:
'<LineNum> <statement>': add line
'<LineNum>': remove line <lineNum>
'RUN': run program
'NEW': clear program
'LIST': print program
'RENUM': renumber program
'LOAD <fileName>': load from <fileName>
'SAVE <fileName>': save to <fileName>
'DIR': print saved files list
statement:
'<var> = <exp>' assign <exp> to <var>
'PRINT {<exp>|<string>}': print <exp> or <string>
'IF <exp> THEN {<statement>|<lineNum>}': if <exp> then exec
'FOR <var>=<exp1> TO <exp2>': for loop
'NEXT': inc <var> and loop
'GOTO <lineNum>': jump to line <lineNum>
'GOSUB <lineNum>': call subroutine
'RETURN': return from subroutine
'END'
expression:
<exp> ::= <term> | <term> <op> <exp>
<term> ::= [-] {<digits> | <var> | ( <exp> )}
<var> ::= A | B | ...| Z | @(<exp>)
<op> ::= AND | OR | = | <> | > | >= | < | <= | + | - | * | / | %
Website: http://vivi.dyndns.org/games/TinyBASIC/
operasi BASIC kecil di terminal mudah alih
ver 2.x dilepaskan
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
arahan:
'& Lt; lineNum & gt; & lt; kenyataan & gt;': menambah baris
'& Lt; lineNum & gt;': mengeluarkan garis & lt; lineNum & gt;
'RUN': program jangka
'NEW': program yang jelas
'SENARAI': program cetak
'RENUM': menomborkan semula program
'LOAD & lt; fileName & gt;': beban dari & lt; fileName & gt;
'SIMPAN & lt; fileName & gt;': jimat untuk & lt; fileName & gt;
'DIR': print disimpan senarai fail
kenyataan:
'& Lt; var & gt; = & lt; exp & gt;' menetapkan & lt; exp & gt; & lt; var & gt;
'PRINT {& lt; exp & gt; | & lt; tali & gt;}': print & lt; exp & gt; atau & lt; tali & gt;
'IF & lt; exp & gt; THEN {& lt; kenyataan & gt; | & lt; lineNum & gt;}': jika & lt; exp & gt; kemudian exec
BAGI & lt; var & gt; = & lt; exp1 & gt; & lt; exp2 & gt; ': untuk gelung
'NEXT': inc & lt; var & gt; dan gelung
'GOTO & lt; lineNum & gt;': melompat ke garisan & lt; lineNum & gt;
'GOSUB & lt; lineNum & gt;': panggilan subrutin
'RETURN': pulangan daripada subrutin
'END'
ungkapan:
& Lt; exp & gt; :: = & lt; jangka & gt; | & lt; jangka & gt; & lt; op & gt; & lt; exp & gt;
& Lt; jangka & gt; :: = [-] {& lt; digit & gt; | & lt; var & gt; | (& lt; exp & gt;)}
& Lt; var & gt; :: = A | B | ... | Z | @ (& lt; exp & gt;)
& Lt; op & gt; :: = AND | OR | = | & lt; & gt; | & gt; | & gt; = | & lt; | & lt; = | + | - | * | / |%
Laman Web: http://vivi.dyndns.org/games/TinyBASIC/
モバイル端末で動作する Tiny BASIC
ver 2.x is released
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
command:
'<LineNum> <statement>': add line
'<LineNum>': remove line <lineNum>
'RUN': run program
'NEW': clear program
'LIST': print program
'RENUM': renumber program
'LOAD <fileName>': load from <fileName>
'SAVE <fileName>': save to <fileName>
'DIR': print saved files list
statement:
'<var> = <exp>' assign <exp> to <var>
'PRINT {<exp>|<string>}': print <exp> or <string>
'IF <exp> THEN {<statement>|<lineNum>}': if <exp> then exec
'FOR <var>=<exp1> TO <exp2>': for loop
'NEXT': inc <var> and loop
'GOTO <lineNum>': jump to line <lineNum>
'GOSUB <lineNum>': call subroutine
'RETURN': return from subroutine
'END'
expression:
<exp> ::= <term> | <term> <op> <exp>
<term> ::= [-] {<digits> | <var> | ( <exp> )}
<var> ::= A | B | ...| Z | @(<exp>)
<op> ::= AND | OR | = | <> | > | >= | < | <= | + | - | * | / | %
Website: http://vivi.dyndns.org/games/TinyBASIC/