diff options
Diffstat (limited to 'core/base.moon')
| -rw-r--r-- | core/base.moon | 8 |
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 |
