commit 0e31cba13af2a9fbb5111e36dfbc5748d6a4add2
parent 47cb588d954e66bf1b292d9ae4fea1e44d1ba541
Author: thing1 <l.standen@posteo.com>
Date: Sun, 5 Oct 2025 21:24:34 +0100
Lexer token types
Diffstat:
| A | lex.c | | | 33 | +++++++++++++++++++++++++++++++++ |
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/lex.c b/lex.c
@@ -0,0 +1,33 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+enum lex_type {
+ STRING,
+ NAME,
+ NUM,
+ SEMI,
+ DEREF,
+ UNARRAY,
+ QUOTE,
+ OBRACE,
+ CBRACE,
+ ASSIGN,
+ EQU,
+ NEQ,
+ LT,
+ GT,
+ LTE,
+ GTE,
+ FUNC,
+ COMMA,
+ ADD,
+ SUB,
+ DIV,
+ MUL,
+ BYTE,
+ SHORT,
+ LONG,
+ OCBRACE,
+ CCBRACE,
+};