モバイル端末で動作する 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/
Tiny BASIC operating in the mobile terminal
ver 2.x is released
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
command:
'& Lt; LineNum & gt; & lt; statement & gt;': add line
'& Lt; LineNum & gt;': remove line & lt; lineNum & gt;
'RUN': run program
'NEW': clear program
'LIST': print program
'RENUM': renumber program
'LOAD & lt; fileName & gt;': load from & lt; fileName & gt;
'SAVE & lt; fileName & gt;': save to & lt; fileName & gt;
'DIR': print saved files list
statement:
'& Lt; var & gt; = & lt; exp & gt;' assign & lt; exp & gt; to & lt; var & gt;
'PRINT {& lt; exp & gt; | & lt; string & gt;}': print & lt; exp & gt; or & lt; string & gt;
'IF & lt; exp & gt; THEN {& lt; statement & gt; | & lt; lineNum & gt;}': if & lt; exp & gt; then exec
'FOR & lt; var & gt; = & lt; exp1 & gt; TO & lt; exp2 & gt;': for loop
'NEXT': inc & lt; var & gt; and loop
'GOTO & lt; lineNum & gt;': jump to line & lt; lineNum & gt;
'GOSUB & lt; lineNum & gt;': call subroutine
'RETURN': return from subroutine
'END'
expression:
& Lt; exp & gt; :: = & lt; term & gt; | & lt; term & gt; & lt; op & gt; & lt; exp & gt;
& Lt; term & gt; :: = [-] {& lt; digits & 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; = | + | - | * | / |%
Website: 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/