Skip to content

Commit 0b297f4

Browse files
committed
Add fun/apply
1 parent 4c368cb commit 0b297f4

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
@@ -4421,6 +4421,9 @@ def int_as_str(obj: Object) -> String:
44214421
| {type="Assign", name=name, value=value} -> "((" ++ name ++ ") =>" ++ (compile value) ++ ")("
44224422
| {type="Where", binding={type="Assign", name=name, value=value}, body=body} ->
44234423
"(" ++ (compile name) ++ " => " ++ (compile body) ++ ")(" ++ (compile value) ++ ")"
4424+
| {type="Function", arg=arg, body=body} ->
4425+
"(" ++ (compile arg) ++ " => " ++ (compile body) ++ ")"
4426+
| {type="Apply", func=func, arg=arg} -> "(" ++ (compile func) ++ ")(" ++ (compile arg) ++ ")"
44244427
44254428
. join = sep ->
44264429
| [] -> ""

0 commit comments

Comments
 (0)