モバイル端末で動作する 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/
Minuscola operativo BASIC nel terminale mobile
ver 2.x viene rilasciato
https://play.google.com/store/apps/details?id=org.dyndns.vivi.TinyBASIC2
comando:
'& Lt; LineNum & gt; & lt; dichiarazione & gt;': aggiungi linea
'& Lt; LineNum & gt;': rimuovere linea & lt; lineNum & gt;
'RUN': il programma run
'NOVITA': programma chiaro
'LIST': programma di stampa
'RENUM': renumber programma
'LOAD & lt; nomeFile & gt;': carico da & lt; nomeFile & gt;
'SAVE & lt; nomefile & gt;': salvare & lt; nomefile & gt;
'DIR': stampa la lista dei file salvati
dichiarazione:
'& Lt; var & gt; = & lt; exp & gt;' assegnare & lt; exp & gt; a & lt; var & gt;
'STAMPA {& lt; exp & gt; | & lt; stringa & gt;}': print & lt; exp & gt; o & lt; stringa & gt;
'SE & lt; exp & gt; quindi {& lt; & gt dichiarazione; | & lt; lineNum & gt;}': se & lt; exp & gt; poi exec
'PER & lt; var & gt; = & lt; exp1 & gt; alla & lt; exp2 & gt;': ciclo for
'AVANTI': inc & lt; var & gt; e anello
'GOTO & lt; lineNum & gt;': salto alla linea & lt; lineNum & gt;
'GOSUB & lt; lineNum & gt;': chiamata subroutine
'RITORNO': ritorno da subroutine
'END'
espressione:
& Lt; exp & gt; :: = & lt; & gt termine; | & lt; termine & gt; & lt; op & gt; & lt; exp & gt;
& Lt; & gt termine; :: = [-] {& lt; & gt; cifre | & lt; var & gt; | (& lt; exp & gt;)}
& Lt; var & gt; :: = A | B | ... | Z | @ (& lt; exp & gt;)
& Lt; op & gt; :: = E | O | = | & lt; & gt; | & gt; | & gt; = | & lt; | & lt; = | + | - | * | / |%
Sito 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/