summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/np/lex.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/include/np/lex.h b/src/sys/include/np/lex.h
index daca954..235e997 100644
--- a/src/sys/include/np/lex.h
+++ b/src/sys/include/np/lex.h
@@ -63,19 +63,26 @@ typedef enum {
/* Types */
TT_U8, /* 'u8' */
+ /* Values */
+ TT_NUMBER, /* <numbers> */
+
/* Keywords */
TT_BEGIN, /* 'begin' */
TT_PROC, /* 'proc' */
TT_END, /* 'end' */
} tt_t;
+typedef uint64_t tokval_t;
+
/*
* Represents a lexer token
*
* @token: Token type
+ * @val: Integer value
*/
struct lex_token {
tt_t token;
+ tokval_t val;
};
/*