Skip to content

Commit

Permalink
Refactor compiler (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jan 7, 2025
1 parent 45969ae commit 2b31b52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions compile.scm
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@
(define library-symbol-separator #\%)

(define (library-symbol? name)
(memv-position
library-symbol-separator
(string->list (symbol->string name))))
(memv library-symbol-separator (string->list (symbol->string name))))

(define (build-library-name id name)
(string-append
Expand Down Expand Up @@ -923,7 +921,7 @@

; If a variable is not in environment, it is considered to be global.
(define (compilation-context-resolve context variable)
(or (memv-position variable (compilation-context-environment context)) variable))
(or (memq-position variable (compilation-context-environment context)) variable))

;; Procedures

Expand Down

0 comments on commit 2b31b52

Please sign in to comment.