aboutsummaryrefslogtreecommitdiffstats
path: root/core/base.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-10 17:51:24 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-10 17:51:24 +0000
commit6c18ffdcc493bce6bfec4f5e64453ec7d6140253 (patch)
treebd3f3fe647a8ad66d7c77c918174a464389a70f3 /core/base.moon
parentclosures (diff)
downloadalive-6c18ffdcc493bce6bfec4f5e64453ec7d6140253.tar.gz
alive-6c18ffdcc493bce6bfec4f5e64453ec7d6140253.zip
add doc, import, import*, defn
Diffstat (limited to 'core/base.moon')
-rw-r--r--core/base.moon8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/base.moon b/core/base.moon
index 1805bea..05f7590 100644
--- a/core/base.moon
+++ b/core/base.moon
@@ -66,4 +66,10 @@ class Action
__tostring: => "<action: #{@@__name}>"
__inherited: (cls) => cls.__base.__tostring = @__tostring
-:Op, :Action
+class FnDef
+ new: (@params, @body, @scope) =>
+
+ __tostring: =>
+ table.concat [p\stringify! for p in *@params], ' '
+
+:Op, :Action, :FnDef