モバイル端末で動作する 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/
operacional BASIC minúsculo no terminal móvel
ver 2.x é liberado
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
comando:
'& Lt; LineNum & gt; & lt; declaração & gt;': adicionar a linha
'& Lt; LineNum & gt;': remover linha & lt; lineNum & gt;
'RUN': execução do programa
'NOVO': programa claro
'Lista': programa de impressão
'RENUM': renumerar programa
'CARGA & lt; nomeArquivo & gt;': carga de & lt; nomeArquivo & gt;
'GUARDAR & lt; nomeArquivo & gt;': salvar a & lt; nomeArquivo & gt;
'DIR': impressão salvo lista de arquivos
declaração:
'& Lt; var & gt; = & lt; exp & gt;' atribuir & lt; exp & gt; a & lt; var & gt;
'PRINT {& lt; exp & gt; | & lt; string de & gt;}': print & lt; exp & gt; ou & lt; string de & gt;
'SE & lt; exp & gt; em seguida, {& lt; declaração & gt; | & lt; lineNum & gt;}': se o & lt; exp & gt; em seguida, exec
'PARA & lt; var & gt; = & lt; EXP1 & gt; a & lt; exp2 & gt;': loop
'Próximo': inc & lt; var & gt; e laço
GOTO & lt; lineNum & gt; ': salto de linha & lt; lineNum & gt;
'GOSUB & lt; lineNum & gt;': sub-rotina chamada
'Retorno': retorno de sub-rotina
'END'
expressão:
& Lt; exp & gt; :: = & lt; & gt termo; | & lt; prazo & gt; & lt; op & gt; & lt; exp & gt;
& Lt; prazo & gt; :: = [-] {& lt; dígitos & gt; | & lt; var & gt; | (& lt; exp & gt;)}
& Lt; var & gt; :: = A | B | ... | Z | @ (& lt; exp & gt;)
& Lt; op & gt; :: = E | 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/