summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-10-22 04:51:24 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-10-22 04:51:24 +0200
commit002e1d76ef255274806535173e1968ac24ab325a (patch)
treeceacd14fbec73e279fe85f9edcbfde1aae981b01
parent745e5d1058400266a322ce47dcb3ea2b2cced943 (diff)
downloadataxia-002e1d76ef255274806535173e1968ac24ab325a.zip
ataxia-002e1d76ef255274806535173e1968ac24ab325a.tar.bz2
Adds forgotten variable constructor.
-rw-r--r--src/ataxic.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ataxic.erl b/src/ataxic.erl
index 2993639..8443d28 100644
--- a/src/ataxic.erl
+++ b/src/ataxic.erl
@@ -71,7 +71,8 @@
neg/1,
list_cons/1,
ternary/3,
- bind/2
+ bind/2,
+ variable/1
]
).
@@ -221,6 +222,9 @@ ternary (Cond, Then, Else) ->
-spec bind (list({variable(), basic()}), basic()) -> basic().
bind (Bindings, OP) -> #letr{ bindings = Bindings, op = OP }.
+-spec variable (variable()) -> basic().
+variable (Name) -> #var{ name = Name }.
+
-spec sequence_meta (list(meta())) -> meta().
sequence_meta (List) -> #mseq{ ops = List }.