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"
|
(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
|
(require (as-is:unchecked frtime/core/frp
|
||||||
event-set? signal-value))
|
event-set? signal-value))
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,43 @@
|
||||||
(module lang-utils "lang-core.rkt"
|
(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
|
module
|
||||||
|
begin
|
||||||
|
syntax-rules
|
||||||
#%app
|
#%app
|
||||||
#%top
|
#%top
|
||||||
#%datum
|
#%datum
|
||||||
#%plain-module-begin
|
#%plain-module-begin
|
||||||
#%module-begin
|
#%module-begin
|
||||||
|
#%top-interaction
|
||||||
|
λ
|
||||||
|
let
|
||||||
|
define
|
||||||
|
define-syntax
|
||||||
|
define-for-syntax
|
||||||
|
case
|
||||||
|
apply
|
||||||
if
|
if
|
||||||
lambda
|
lambda
|
||||||
case-lambda
|
case-lambda
|
||||||
|
chaperone-procedure
|
||||||
|
free-identifier=?
|
||||||
reverse
|
reverse
|
||||||
|
collection-path
|
||||||
|
collection-file-path
|
||||||
list-ref
|
list-ref
|
||||||
require
|
require
|
||||||
|
collection-path
|
||||||
|
raise-arity-error
|
||||||
|
procedure-rename
|
||||||
|
impersonate-procedure
|
||||||
|
procedure-reduce-arity
|
||||||
|
procedure-arity
|
||||||
|
procedure->method
|
||||||
|
prop:procedure
|
||||||
|
regexp-replace*
|
||||||
provide
|
provide
|
||||||
letrec
|
letrec
|
||||||
match
|
match
|
||||||
|
@ -31,14 +56,14 @@
|
||||||
and
|
and
|
||||||
or
|
or
|
||||||
cond when unless
|
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 mzscheme mzscheme:if if)
|
||||||
(rename "lang-ext.rkt" lift lift)
|
(rename "lang-ext.rkt" lift lift)
|
||||||
(only frtime/core/frp super-lift behavior? value-now)
|
(only frtime/core/frp super-lift behavior? value-now)
|
||||||
(rename "lang-ext.rkt" undefined undefined)
|
(rename "lang-ext.rkt" undefined undefined)
|
||||||
(rename "lang-ext.rkt" undefined? undefined?)
|
(rename "lang-ext.rkt" undefined? undefined?)
|
||||||
mzlib/class)
|
mzlib/class)
|
||||||
(require mzlib/list)
|
(require (only racket/list empty))
|
||||||
|
|
||||||
(define-syntax (lifted-send stx)
|
(define-syntax (lifted-send stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
|
@ -284,6 +309,8 @@
|
||||||
cddddr
|
cddddr
|
||||||
build-path
|
build-path
|
||||||
collection-path
|
collection-path
|
||||||
|
lifted-send
|
||||||
|
dont-optimize
|
||||||
|
|
||||||
list-ref
|
list-ref
|
||||||
(rename frp:case case)
|
(rename frp:case case)
|
||||||
|
@ -363,7 +390,6 @@
|
||||||
current-directory
|
current-directory
|
||||||
exit
|
exit
|
||||||
system-type
|
system-type
|
||||||
lifted-send
|
|
||||||
unsyntax-splicing
|
unsyntax-splicing
|
||||||
|
|
||||||
delay
|
delay
|
||||||
|
@ -375,7 +401,7 @@
|
||||||
with-input-from-file
|
with-input-from-file
|
||||||
read
|
read
|
||||||
|
|
||||||
dont-optimize
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user