diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-02 22:29:38 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-02 22:32:35 -0400 |
commit | 5376635efb1a3a80ee8c16160afa642b7db6c43b (patch) | |
tree | 5f5a18b94130cae58d08699f0aa3cce43010cd3a /src/sys/include/np | |
parent | 21e2714d90fdfc853159bd08368bb350dc9388e1 (diff) |
np: lex: Introduce string tokens
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/np')
-rw-r--r-- | src/sys/include/np/lex.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, /* <string> */ /* Values */ TT_NUMBER, /* <numbers> */ |