diff options
Diffstat (limited to 'tokens.c')
-rw-r--r-- | tokens.c | 70 |
1 files changed, 35 insertions, 35 deletions
@@ -1,60 +1,60 @@ const char *commands[] = { - "REM", + "REM", /* $00 */ "DATA", "INPUT", "COLOR", - "LIST", + "LIST", /* $04 */ "ENTER", "LET", "IF", - "FOR", + "FOR", /* $08 */ "NEXT", "GOTO", "GO TO", - "GOSUB", + "GOSUB", /* $0C */ "TRAP", "BYE", "CONT", - "COM", + "COM", /* $10 */ "CLOSE", "CLR", "DEG", - "DIM", + "DIM", /* $14 */ "END", "NEW", "OPEN", - "LOAD", + "LOAD", /* $18 */ "SAVE", "STATUS", "NOTE", - "POINT", + "POINT", /* $1C */ "XIO", "ON", "POKE", - "PRINT", + "PRINT", /* $20 */ "RAD", "READ", "RESTORE", - "RETURN", + "RETURN", /* $24 */ "RUN", "STOP", "POP", - "?", + "?", /* $28 */ "GET", "PUT", "GRAPHICS", - "PLOT", + "PLOT", /* $2C */ "POSITION", "DOS", "DRAWTO", - "SETCOLOR", + "SETCOLOR", /* $30 */ "LOCATE", "SOUND", "LPRINT", - "CSAVE", + "CSAVE", /* $34 */ "CLOAD", - "", /* implied LET */ - "ERROR -" + "", /* $36, implied LET */ + "ERROR- " /* $37 */ }; const unsigned short last_command = (sizeof(commands) / sizeof(char *)) - 1; @@ -63,29 +63,29 @@ const char *operators[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - ",", + ",", /* $12 */ "$", - ":", + ":", /* $14, named OP_COLON and OP_EOS in bas.h */ ";", - "", /* $16, EOL */ + "", /* $16, EOL */ " GOTO ", - " GOSUB ", /* $18 */ + " GOSUB ", /* $18 */ " TO ", " STEP ", " THEN ", - "#", + "#", /* $1C */ "<=", "<>", ">=", - "<", /* $20 */ + "<", /* $20 */ ">", "=", "^", - "*", + "*", /* $24 */ "+", "-", "/", - " NOT ", /* $28 */ + " NOT ", /* $28 */ " OR ", " AND ", "(", @@ -93,43 +93,43 @@ const char *operators[] = { "=", "=", "<=", - "<>", /* $30 */ + "<>", /* $30 */ ">=", "<", ">", - "=", + "=", /* $34 */ "+", "-", "(", - "", /* $38, redunant for arrays */ - "", /* $39, ditto */ + "", /* $38, redundant "(" for arrays */ + "", /* $39, ditto for strings */ "(", "(", - ",", + ",", /* $3C */ "STR$", "CHR$", "USR", - "ASC", /* $40 */ + "ASC", /* $40 */ "VAL", "LEN", "ADR", - "ATN", + "ATN", /* $44 */ "COS", "PEEK", "SIN", - "RND", /* $48 */ + "RND", /* $48 */ "FRE", "EXP", "LOG", - "CLOG", + "CLOG", /* $4C */ "SQR", "SGN", "ABS", - "INT", /* $50 */ + "INT", /* $50 */ "PADDLE", "STICK", "PTRIG", - "STRIG" /* $54 */ + "STRIG" /* $54 */ }; const unsigned short last_operator = (sizeof(operators) / sizeof(char *)) - 1; |