Rewritten the expression parser, tldr that '.' is actually right associative binary operator, I brain farted really hard this time
This commit is contained in:
4
lexer.kl
4
lexer.kl
@@ -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
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user