From: momoyon Date: Sun, 18 May 2025 12:26:27 +0000 (+0500) Subject: [main.c] WIP: last TODO X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;ds=inline;p=lang.git [main.c] WIP: last TODO --- diff --git a/main.c b/main.c index ae50bde..9475926 100644 --- a/main.c +++ b/main.c @@ -38,7 +38,7 @@ static bool DEBUG_PRINT = false; // comp.lit -> Skipped... // // TODO: These all IDENT need to be ast, but if i do that, how can i parse them? // I will need to call parse() the first thing and check the next token... Which i cant really do right now that easily -// access -> IDENT "." ( access | IDENT ) ; +// access -> ( IDENT | funcalls ) "." ( access | IDENT ) ; // subscript -> IDENT "[" ast "]" ; // funcalls -> IDENT "(" ( ast "," )* ")" | IDENT "(" ast ")" ; // suffix -> IDENT ( "++" | "--" ) ;