mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 00:37:35 +02:00
Cleanup
This commit is contained in:
parent
8d327b9dd2
commit
5df8fd92ed
1 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
|||
simple-lambda?
|
||||
one-instance-of-new-mutable-obj?
|
||||
;; Analysis - well-known lambdas
|
||||
well-known-lambda?
|
||||
well-known-lambda
|
||||
analyze:find-known-lambdas
|
||||
;; Analyze variables
|
||||
adb:make-var
|
||||
|
@ -1984,8 +1984,10 @@
|
|||
exp))
|
||||
)
|
||||
|
||||
;; well-known-lambda :: symbol -> Either (AST Lambda | Boolean)
|
||||
;; Does the given symbol refer to a well-known lambda?
|
||||
(define (well-known-lambda? sym)
|
||||
;; If so the corresponding lambda object is returned, else #f.
|
||||
(define (well-known-lambda sym)
|
||||
(and *well-known-lambda-sym-lookup-tbl*
|
||||
(hash-table-ref/default *well-known-lambda-sym-lookup-tbl* sym #f)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue