completed for loop parsing
This commit is contained in:
parent
0015c2b81d
commit
cb021716ef
4 changed files with 146 additions and 87 deletions
11
parser.h
11
parser.h
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue