File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Sources/LispKit/Primitives Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ framework:
209209 - [ SRFI 221: Generator/accumulator sub-library] ( https://srfi.schemers.org/srfi-221/srfi-221.html )
210210 - [ SRFI 222: Compound Objects] ( https://srfi.schemers.org/srfi-222/srfi-222.html )
211211 - [ SRFI 223: Generalized binary search procedures] ( https://srfi.schemers.org/srfi-223/srfi-223.html )
212-
212+
213213
214214## Project
215215
Original file line number Diff line number Diff line change @@ -340,6 +340,12 @@ public final class SystemLibrary: NativeLibrary {
340340 switch args. first! {
341341 case . null:
342342 return ( CoreLibrary . voidProc, [ ] )
343+ case . pair( let expr, . null) :
344+ let code = try Compiler . compile ( expr: . pair( expr, . null) ,
345+ in: . global( try env. asEnvironment ( ) ) ,
346+ optimize: true ,
347+ inDirectory: try sourceDir. asString ( ) )
348+ return ( Procedure ( code) , [ ] )
343349 case . pair( let expr, let rest) :
344350 let source = Expr . pair (
345351 expr,
You can’t perform that action at this time.
0 commit comments