| summaryrefslogtreecommitdiff |
diff options
| -rw-r--r-- | src/ataxic.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ataxic.erl b/src/ataxic.erl index 1c0e31b..83e687d 100644 --- a/src/ataxic.erl +++ b/src/ataxic.erl @@ -12,10 +12,20 @@ %%%% Sequence of instructions -record(seq, {ops :: list(basic())}). -%%%% List +%%%% Values Access -record(const, {value :: any()}). -record(current, {}). +% Possible improvement: add support for some sort of registers. +% This would add a dict (no need for orddict here) when evaluating Ataxic +% expressions, with the following functions: +% -record(reg_store, {name :: binary(), op :: basic()}). +% -record(reg_load, {name :: binary()}). +% It's kind of weird to use though, cause you can't retrieve what you've stored +% at a node that was deeper in the query's tree. It can be used to move values +% further down (or horizontally) though, and there are already instructions that +% give you values found further down. + -record ( apply_fun, |


