Rewritten the expression parser, tldr that '.' is actually right associative binary operator, I brain farted really hard this time

This commit is contained in:
Krzosa Karol
2022-06-01 18:59:38 +02:00
parent 364daed1c7
commit 494a937d1f
5 changed files with 103 additions and 88 deletions

View File

@@ -1,9 +1,10 @@
/*
Lex_Stream :: struct
stream: String
offset: int
lexc :: (s: *Lex_Stream): String // @todo U8 U S
return s.stream + s.offset // @todo parsing fields wrong + s.offset // + s.offset @todo Actual string support
return s.stream + s.offset // s.offset @todo Actual string support
main :: ()
string_to_lex := "Identifier 2425525 Not_Number"
@@ -12,3 +13,4 @@ main :: ()
for inf:=0, inf, inf // @todo for
pass
*/