aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/all.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-06 22:12:59 +0200
committerlemon <lsof@mailbox.org>2022-08-06 22:30:45 +0200
commita522d6c89067aa2b560ccab3eed9b4e00e89b100 (patch)
tree59d0ce39a20864d780781607e45c1f9572eae831 /bootstrap/all.h
parent09baa8201a5422b8fa3d9d96bbfe7ceb3e12736b (diff)
slices
Diffstat (limited to 'bootstrap/all.h')
-rw-r--r--bootstrap/all.h7
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;
};
};