need to correct namespaces.
This commit is contained in:
parent
57034cf5a5
commit
e302015fc3
|
@ -105,4 +105,7 @@
|
||||||
(format "M.primitives[~s]" (symbol->string (PrimitivesReference-name op)))]
|
(format "M.primitives[~s]" (symbol->string (PrimitivesReference-name op)))]
|
||||||
|
|
||||||
[(GlobalsReference? op)
|
[(GlobalsReference? op)
|
||||||
(format "M.globals[~s]" (symbol->string (GlobalsReference-name op)))]))
|
(format "(M.globals[~s]!==undefined?M.globals[~s]:M.params.currentNamespace.get(~s))"
|
||||||
|
(symbol->string (GlobalsReference-name op))
|
||||||
|
(symbol->string (GlobalsReference-name op))
|
||||||
|
(symbol->string (GlobalsReference-name op)))]))
|
|
@ -19,9 +19,12 @@ $(document).ready(function() {
|
||||||
// We then want to initialize the language module.
|
// We then want to initialize the language module.
|
||||||
var initializeLanguage = function(afterLanguageInitialization) {
|
var initializeLanguage = function(afterLanguageInitialization) {
|
||||||
// Load up the language.
|
// Load up the language.
|
||||||
M.modules['whalesong/wescheme/lang/semantics.rkt'].invoke(
|
var semanticsModule =
|
||||||
|
M.modules['whalesong/wescheme/lang/semantics.rkt'];
|
||||||
|
semanticsModule.invoke(
|
||||||
M,
|
M,
|
||||||
function() {
|
function() {
|
||||||
|
M.params.currentNamespace = semanticsModule.getNamespace();
|
||||||
console.log("Environment initialized.");
|
console.log("Environment initialized.");
|
||||||
afterLanguageInitialization();
|
afterLanguageInitialization();
|
||||||
},
|
},
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(write-repl-runtime-files)
|
;(write-repl-runtime-files)
|
||||||
(serve/servlet start
|
(serve/servlet start
|
||||||
#:servlet-path "/compile"
|
#:servlet-path "/compile"
|
||||||
#:extra-files-paths (list htdocs)
|
#:extra-files-paths (list htdocs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user