From 24359b5b84c756d94b6ce2f56b75709fa5d7ad1a Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 24 Apr 2019 23:54:09 +0200 Subject: Adds notes for a future feature. --- src/ataxic.erl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2