completed for loop parsing

This commit is contained in:
Lorenzo Torres 2025-12-02 21:27:41 +01:00
parent 0015c2b81d
commit cb021716ef
4 changed files with 146 additions and 87 deletions

View file

@ -156,12 +156,11 @@ typedef struct _ast_node {
struct _ast_node *path;
} import;
struct {
struct _ast_node *range;
struct _ast_node *array;
const char* rangeCapture;
const char* arrayCapture;
int rangeCaptureLen;
int arrayCaptureLen;
/* These should be lists of unit_node */
struct _ast_node *slices;
struct _ast_node *captures;
int capture_len;
int slice_len;
struct _ast_node* body;
} fr; // for
struct {