This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository eshell.

View the commit online.

commit 2923fd00b68e615e832331dbe9b93877c160aed9
Author: swagtoy <m...@ow.swag.toys>
AuthorDate: Sat Nov 16 14:30:06 2024 -0500

    lexer: Token structs
    
    Still not much; i hate having a job
---
 escript/include/lexer.h | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/escript/include/lexer.h b/escript/include/lexer.h
index 6e64c71..8d24d5a 100644
--- a/escript/include/lexer.h
+++ b/escript/include/lexer.h
@@ -71,9 +71,26 @@ enum Escript_Lex_Keywords
 	ELEX_RSHIFT,  //>>
 };
 
+struct Escript_Token_String
+{
+	char const* str;
+	int str_len;
+};
+
+union Escript_Token_Data
+{
+	struct Escript_Token_String const d_string; // it hurts!!
+	int const d_int;
+	double const d_double;
+	
+};
+
+
 struct Escript_Token
 {
-	int x;
+	enum Escript_Lex_Keywords type; // union member
+	char unsigned is_keyword;
+	union Escript_Token_Data token;
 };
 
 struct Escript_Lexer

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to