]> www.git.momoyon.org Git - lang.git/commitdiff
[main.c] WIP: Bruh idk how to fix the parsing of access to have funcalls!
authormomoyon <momoyon@momoyon.org>
Tue, 20 May 2025 14:10:24 +0000 (19:10 +0500)
committermomoyon <momoyon@momoyon.org>
Tue, 20 May 2025 14:10:24 +0000 (19:10 +0500)
main.c

diff --git a/main.c b/main.c
index 94759260601c5dde5ef6e997bf4b38a073833411..825edec84e03d62c6259f161b618126abd3a237f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -995,6 +995,13 @@ AST *parse_funcall(Arena *arena, Parser *p) {
         Token next = parser_peek(p);
         if (next.type == TK_RIGHT_PAREN) {
             parser_advance(p); // Skip )
+            // if (parser_peek(p).type == TK_DOT) {
+            //     AST *access_ast = (AST *)arena_alloc(arena, sizeof(AST));
+            //     access_ast->loc = parser_peek(p).loc;
+            //     access_ast->kind = AST_ACCESS;
+            //     access_ast->access = (Access_AST *)arena_alloc(arena, sizeof(Access_AST));
+            //     access_ast->access->
+            // }
             return ast;
         } else {
             while (true) {