mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 09:54:45 +00:00
Basic call expression and fix to assignment count checking
This commit is contained in:
@@ -1232,7 +1232,8 @@ AstNode *parse_expr_list(AstFile *f, b32 lhs, isize *list_count_) {
|
||||
isize list_count = 0;
|
||||
|
||||
do {
|
||||
DLIST_APPEND(list_root, list_curr, parse_expr(f, lhs));
|
||||
AstNode *e = parse_expr(f, lhs);
|
||||
DLIST_APPEND(list_root, list_curr, e);
|
||||
list_count++;
|
||||
if (f->cursor[0].kind != Token_Comma ||
|
||||
f->cursor[0].kind == Token_EOF)
|
||||
@@ -1259,6 +1260,7 @@ AstNode *parse_simple_stmt(AstFile *f) {
|
||||
isize lhs_count = 0, rhs_count = 0;
|
||||
AstNode *lhs_expr_list = parse_lhs_expr_list(f, &lhs_count);
|
||||
|
||||
|
||||
AstNode *statement = NULL;
|
||||
Token token = f->cursor[0];
|
||||
switch (token.kind) {
|
||||
|
||||
Reference in New Issue
Block a user