From 5376635efb1a3a80ee8c16160afa642b7db6c43b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 2 Oct 2025 22:29:38 -0400 Subject: np: lex: Introduce string tokens Signed-off-by: Ian Moffett --- src/sys/include/np/lex.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sys/include/np') diff --git a/src/sys/include/np/lex.h b/src/sys/include/np/lex.h index ba581b7..b9c8a6a 100644 --- a/src/sys/include/np/lex.h +++ b/src/sys/include/np/lex.h @@ -35,6 +35,9 @@ /* End-of-file */ #define LEX_EOF (-2) +/* Max string length */ +#define LEX_MAX_STRLEN 4096 + struct np_work; /* Keywords */ @@ -86,6 +89,7 @@ typedef enum { TT_I16, /* 'i16' */ TT_I32, /* 'i32' */ TT_I64, /* 'i64' */ + TT_STR, /* */ /* Values */ TT_NUMBER, /* */ -- cgit v1.2.3