Skip to content

Commit d6e84f4

Browse files
committed
Add fun/apply
1 parent b2aca1f commit d6e84f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scrapscript.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,9 @@ def int_as_str(obj: Object) -> String:
44164416
| {type="Assign", name=name, value=value} -> "((" ++ name ++ ") =>" ++ (compile value) ++ ")("
44174417
| {type="Where", binding={type="Assign", name=name, value=value}, body=body} ->
44184418
"(" ++ (compile name) ++ " => " ++ (compile body) ++ ")(" ++ (compile value) ++ ")"
4419+
| {type="Function", arg=arg, body=body} ->
4420+
"(" ++ (compile arg) ++ " => " ++ (compile body) ++ ")"
4421+
| {type="Apply", func=func, arg=arg} -> "(" ++ (compile func) ++ ")(" ++ (compile arg) ++ ")"
44194422
44204423
. join = sep ->
44214424
| [] -> ""

0 commit comments

Comments
 (0)