diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-10 19:32:39 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-10 19:32:39 +0000 |
commit | 6c964eb54c0056d14a1b929dc09c75240a585cea (patch) | |
tree | 3c57d83be54c151f5a7f5b9596e87b5e425982fc /apl9.h | |
parent | 0b8bd8e88f2620992310c7ba41283f5d9120e371 (diff) |
Implement ( expr ) and improve stranding
Diffstat (limited to 'apl9.h')
-rw-r--r-- | apl9.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -27,6 +27,7 @@ typedef enum /* Data types */ typedef struct Array Array; +typedef struct Expr Expr; typedef struct Datum Datum; struct Array @@ -35,6 +36,7 @@ struct Array int rank; int *shape; int size; + int stranded; /* 1 if build directly by stranding */ union { char *rawdata; vlong *intdata; @@ -42,12 +44,19 @@ struct Array }; }; +struct Expr +{ + int ntoks; + Datum *toks; +}; + struct Datum { datumTag tag; union { Array *array; int code; + Expr expr; }; }; |