implemented member access parsing
This commit is contained in:
parent
c566f7d490
commit
d1b89939ae
4 changed files with 33 additions and 1 deletions
5
parser.h
5
parser.h
|
|
@ -128,6 +128,11 @@ typedef struct _ast_node {
|
|||
struct _ast_node *expr;
|
||||
struct _ast_node *index;
|
||||
} subscript;
|
||||
struct {
|
||||
struct _ast_node *expr;
|
||||
char *member;
|
||||
usize member_len;
|
||||
} access;
|
||||
struct {
|
||||
struct _ast_node *expr;
|
||||
struct _ast_node *next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue