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

@@ -664,7 +664,7 @@ token_kind_string(Token_Kind kind){
case TK_Neg: return "~"_s;
case TK_Not: return "!"_s;
case TK_OpenParen: return "("_s;
case TK_CloseParen: return " "_s;
case TK_CloseParen: return ")"_s;
case TK_OpenBrace: return "{"_s;
case TK_CloseBrace: return "}"_s;
case TK_OpenBracket: return "["_s;