Compare commits
1 Commits
81dfc07867
...
compiler
| Author | SHA1 | Date | |
|---|---|---|---|
|
8d301a6fc2
|
@@ -87,7 +87,9 @@ let rec analyze tbl current = function
|
|||||||
| Set (sym, expr) ->
|
| Set (sym, expr) ->
|
||||||
let* inner = analyze tbl current expr in
|
let* inner = analyze tbl current expr in
|
||||||
resolve_set tbl current sym inner
|
resolve_set tbl current sym inner
|
||||||
| Lambda (s, body) -> analyze tbl (s :: current) body
|
| Lambda (s, body) ->
|
||||||
|
let* body = (analyze tbl (s :: current) body) in
|
||||||
|
Ok (Lambda body)
|
||||||
| Apply (f, e) ->
|
| Apply (f, e) ->
|
||||||
let* f = analyze tbl current f in
|
let* f = analyze tbl current f in
|
||||||
let* e = analyze tbl current e in
|
let* e = analyze tbl current e in
|
||||||
|
|||||||
Reference in New Issue
Block a user