User:Eriksiers/BBC BASIC detokenizer: Difference between revisions
Content added Content deleted
(new version: fixed 'doesn't handle GOTO targets'; further clarified →Licensing: ; linked to gpl & fdl; moved vba to separate page) |
m (updated lang tag) |
||
Line 25: | Line 25: | ||
Note that since I expect the code to run under QBasic, you don't specify the file(s) to be detokenized on the command line, but instead do it one file at a time, via the <code>DETOKEN</code> environment variable. (This can easily be changed, but I don't care to.) |
Note that since I expect the code to run under QBasic, you don't specify the file(s) to be detokenized on the command line, but instead do it one file at a time, via the <code>DETOKEN</code> environment variable. (This can easily be changed, but I don't care to.) |
||
< |
<syntaxhighlight lang="qbasic">DATA 1,CIRCLE,2,ELLIPSE,3,FILLED,4,MOUSE,5,ORIGIN,6,QUIT,7,RECTANGLE,8,SWAP,9,SYS,10,TINT |
||
DATA 11,WAIT,12,INSTALL,14,PRIVATE,15,BY,16,EXIT,128,AND,129,DIV,130,EOR,131,MOD,132,OR |
DATA 11,WAIT,12,INSTALL,14,PRIVATE,15,BY,16,EXIT,128,AND,129,DIV,130,EOR,131,MOD,132,OR |
||
DATA 133,ERROR,134,LINE,135,OFF,136,STEP,137,SPC,138,TAB(,139,ELSE,140,THEN,142,OPENIN,143,PTR |
DATA 133,ERROR,134,LINE,135,OFF,136,STEP,137,SPC,138,TAB(,139,ELSE,140,THEN,142,OPENIN,143,PTR |
||
Line 108: | Line 108: | ||
LOOP |
LOOP |
||
CLOSE |
CLOSE |
||
SYSTEM</ |
SYSTEM</syntaxhighlight> |