finished while loops
This commit is contained in:
parent
21b43af69d
commit
006015c607
7 changed files with 42 additions and 9 deletions
5
parser.h
5
parser.h
|
|
@ -110,6 +110,10 @@ typedef enum {
|
|||
#define PTR_RAW 0x1
|
||||
#define PTR_ARRAY 0x2
|
||||
|
||||
#define LOOP_WHILE 0x1
|
||||
#define LOOP_UNTIL 0x2
|
||||
#define LOOP_AFTER 0x4
|
||||
|
||||
typedef struct _ast_node {
|
||||
node_type type;
|
||||
union {
|
||||
|
|
@ -183,6 +187,7 @@ typedef struct _ast_node {
|
|||
struct {
|
||||
struct _ast_node *condition;
|
||||
struct _ast_node *body;
|
||||
u8 flags;
|
||||
} whle; // while
|
||||
struct {
|
||||
struct _ast_node **statements;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue