Begin transition to racket lang in lang-utils.rkt
-Maximize the number of bindings brought in from racket vs. mzscheme by replacing mzscheme in the (all-except mzscheme form with racket. -import from mzscheme sparingly rather than bringing it all in except the lang-core bindings. -switch mzlib/list require to racket/list -some cleanup of requires and provides
This commit is contained in:
parent
69de8e95b3
commit
01ec2d3fde
|
@ -1,5 +1,5 @@
|
|||
(module frtime-lang-only "lang-utils.rkt"
|
||||
(require frtime/lang-ext)
|
||||
(require (only frtime/lang-ext undefined? signal? value-now lift))
|
||||
(require (as-is:unchecked frtime/core/frp
|
||||
event-set? signal-value))
|
||||
|
||||
|
|
|
@ -1,18 +1,43 @@
|
|||
(module lang-utils "lang-core.rkt"
|
||||
|
||||
(require (all-except mzscheme
|
||||
(require (only mzscheme let define-syntax define apply procedure-arity syntax-object->datum with-input-from-file require-for-syntax make-namespace expand-path collection-path begin syntax-rules)
|
||||
(all-except racket
|
||||
else
|
||||
module
|
||||
begin
|
||||
syntax-rules
|
||||
#%app
|
||||
#%top
|
||||
#%datum
|
||||
#%plain-module-begin
|
||||
#%module-begin
|
||||
#%top-interaction
|
||||
λ
|
||||
let
|
||||
define
|
||||
define-syntax
|
||||
define-for-syntax
|
||||
case
|
||||
apply
|
||||
if
|
||||
lambda
|
||||
case-lambda
|
||||
chaperone-procedure
|
||||
free-identifier=?
|
||||
reverse
|
||||
collection-path
|
||||
collection-file-path
|
||||
list-ref
|
||||
require
|
||||
collection-path
|
||||
raise-arity-error
|
||||
procedure-rename
|
||||
impersonate-procedure
|
||||
procedure-reduce-arity
|
||||
procedure-arity
|
||||
procedure->method
|
||||
prop:procedure
|
||||
regexp-replace*
|
||||
provide
|
||||
letrec
|
||||
match
|
||||
|
@ -31,14 +56,14 @@
|
|||
and
|
||||
or
|
||||
cond when unless
|
||||
map ormap andmap assoc member)
|
||||
map ormap andmap assoc member open-input-file open-output-file open-input-output-file call-with-output-file call-with-input-file with-output-to-file with-input-from-file)
|
||||
(rename mzscheme mzscheme:if if)
|
||||
(rename "lang-ext.rkt" lift lift)
|
||||
(only frtime/core/frp super-lift behavior? value-now)
|
||||
(rename "lang-ext.rkt" undefined undefined)
|
||||
(rename "lang-ext.rkt" undefined? undefined?)
|
||||
mzlib/class)
|
||||
(require mzlib/list)
|
||||
(require (only racket/list empty))
|
||||
|
||||
(define-syntax (lifted-send stx)
|
||||
(syntax-case stx ()
|
||||
|
@ -284,6 +309,8 @@
|
|||
cddddr
|
||||
build-path
|
||||
collection-path
|
||||
lifted-send
|
||||
dont-optimize
|
||||
|
||||
list-ref
|
||||
(rename frp:case case)
|
||||
|
@ -363,7 +390,6 @@
|
|||
current-directory
|
||||
exit
|
||||
system-type
|
||||
lifted-send
|
||||
unsyntax-splicing
|
||||
|
||||
delay
|
||||
|
@ -375,7 +401,7 @@
|
|||
with-input-from-file
|
||||
read
|
||||
|
||||
dont-optimize
|
||||
|
||||
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user