summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-24 23:54:09 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-24 23:54:09 +0200
commit24359b5b84c756d94b6ce2f56b75709fa5d7ad1a (patch)
tree66b2070a525cdeb874b1b01d501a9a86980b5835 /src
parent0f4ac51d85ce27aca0863f299219932a357950ea (diff)
Adds notes for a future feature.
Diffstat (limited to 'src')
-rw-r--r--src/ataxic.erl12
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,