diff options
Diffstat (limited to 'bootstrap/all.h')
| -rw-r--r-- | bootstrap/all.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/all.h b/bootstrap/all.h index 8b57d94..2f7f070 100644 --- a/bootstrap/all.h +++ b/bootstrap/all.h @@ -265,6 +265,8 @@ enum exprtype { Eini, Eget, Emcall, + Eslice, + Elen, }; struct blockstmt { @@ -306,7 +308,7 @@ struct expr { struct expr *lhs, *rhs; } index; struct blockstmt block; - struct expr *child; // cast + struct expr *child; // cast, len struct { i64 i; const char *vname; @@ -323,6 +325,9 @@ struct expr { struct fn *met; slice_t(struct expr) args; } mcall; + struct { + struct expr *lhs, *start, *end; + } slice; }; }; |