From 0ec22cf8ffdc4fba512883a006126962f1ee29d9 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Sep 2025 22:30:20 -0400 Subject: np: lex: Parse identifiers and commas Signed-off-by: Ian Moffett --- src/sys/include/np/lex.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/sys/include') 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, -- cgit v1.2.3