summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-30 22:30:20 -0400
committerIan Moffett <ian@osmora.org>2025-09-30 22:30:20 -0400
commit0ec22cf8ffdc4fba512883a006126962f1ee29d9 (patch)
tree3fb6854675f922d0547b6029a482106a60ab1d59 /src/sys/include
parent56a20074863641eb994e298afb4b38b27a277406 (diff)
np: lex: Parse identifiers and commas
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/np/lex.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sys/include/np/lex.h b/src/sys/include/np/lex.h
index 246769a..2efc14e 100644
--- a/src/sys/include/np/lex.h
+++ b/src/sys/include/np/lex.h
@@ -34,10 +34,14 @@
struct np_work;
+/* Keywords */
#define TOKEN_BEGIN "begin"
#define TOKEN_PROC "proc"
#define TOKEN_END "end"
+/* Types */
+#define TOKEN_U8 "u8"
+
/*
* Represents the various token types that are
* possible
@@ -46,6 +50,11 @@ typedef enum {
/* Symbols */
TT_LPAREN,
TT_RPAREN,
+ TT_IDENT,
+ TT_COMMA,
+
+ /* Types */
+ TT_U8,
/* Keywords */
TT_BEGIN,