summaryrefslogtreecommitdiff
path: root/boot/definitions.inc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-05-02 22:57:04 +0200
committerEugen Wissner <belka@caraus.de>2025-05-02 22:57:04 +0200
commitdcfd6b1515679cfbc75de12a17352d9d1eddceaf (patch)
treeb50acc98325fffd5d1168a9c89d64ed54dd4217d /boot/definitions.inc
parent768821c68980968f7ab37ef71f4389c4fcee9235 (diff)
downloadelna-dcfd6b1515679cfbc75de12a17352d9d1eddceaf.tar.gz
Properly tokenize declaration sections
Diffstat (limited to 'boot/definitions.inc')
-rw-r--r--boot/definitions.inc28
1 files changed, 28 insertions, 0 deletions
diff --git a/boot/definitions.inc b/boot/definitions.inc
new file mode 100644
index 0000000..0e2f54e
--- /dev/null
+++ b/boot/definitions.inc
@@ -0,0 +1,28 @@
+# The constant should match the index in the keywords array in tokenizer.s.
+
+.equ TOKEN_PROGRAM, 1
+.equ TOKEN_IMPORT, 2
+.equ TOKEN_CONST, 3
+.equ TOKEN_VAR, 4
+.equ TOKEN_IF, 5
+.equ TOKEN_THEN, 6
+.equ TOKEN_ELSIF, 7
+.equ TOKEN_ELSE, 8
+.equ TOKEN_WHILE, 9
+.equ TOKEN_DO, 10
+.equ TOKEN_PROC, 11
+.equ TOKEN_BEGIN, 12
+.equ TOKEN_END, 13
+.equ TOKEN_TYPE, 14
+.equ TOKEN_RECORD, 15
+.equ TOKEN_RECORD, 16
+.equ TOKEN_TRUE, 17
+.equ TOKEN_FASE, 18
+.equ TOKEN_NIL, 19
+.equ TOKEN_XOR, 20
+.equ TOKEN_OR, 21
+.equ TOKEN_RETURN, 22
+.equ TOKEN_CAST, 23
+.equ TOKEN_DEFER, 24
+.equ TOKEN_CASE, 25
+.equ TOKEN_OF, 26