aboutsummaryrefslogtreecommitdiff
path: root/tokens.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-06-27 04:06:44 -0400
committerB. Watson <urchlay@slackware.uk>2024-06-27 04:06:44 -0400
commitc87e1097e5d0b35cc8d9b62d6d8df23087039bbe (patch)
tree5ff6226fcd35452d93c62947c49c899ef5039d8f /tokens.c
parent370beba9411917d85df64a1af7aa02340e3e0476 (diff)
downloadbw-atari8-tools-c87e1097e5d0b35cc8d9b62d6d8df23087039bbe.tar.gz
token.h, bas.h: commentary.
Diffstat (limited to 'tokens.c')
-rw-r--r--tokens.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/tokens.c b/tokens.c
index 32a818c..ce7b846 100644
--- a/tokens.c
+++ b/tokens.c
@@ -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 for strings */
+ "", /* $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;