Skip to content

Commit

Permalink
Add Guile3-prelude.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraven committed Jun 19, 2022
1 parent f6723d5 commit b475dd8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Guile3-prelude.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(use-modules (ice-9 rdelim))
(define-syntax import
(syntax-rules ()
((import stuff ...)
(begin) ;; do nothing
)))
(define flush-output-port force-output)
(define current-second current-time)
(define (jiffies-per-second) internal-time-units-per-second)
(define current-jiffy get-internal-real-time)
(define exact inexact->exact)
(define inexact exact->inexact)
(define (square x) (* x x))
(define (write-string str out) (display str out)) ; sufficient for tail.scm
(define (this-scheme-implementation-name) (string-append "guile3-" (version)))
(read-enable 'r7rs-symbols)
(print-enable 'r7rs-symbols)
(use-modules (rnrs bytevectors)
(rnrs base)
(srfi srfi-9))

0 comments on commit b475dd8

Please sign in to comment.