aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-17 13:12:42 +0300
committermax99x <max99x@gmail.com>2011-07-17 13:12:42 +0300
commit61c5b7568e542d8c353a1b78be2a151f93b55acb (patch)
tree47760a69a78b998f9d15b2b3ccd46427f493fa33 /src/compiler.js
parent26031d46a779fcfe44e4cd6d2476eee99b0c621b (diff)
parentab56efe76e94a0508d3983e9430e2aa18b1e2667 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 4fe68e88..8cb023d9 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -56,7 +56,7 @@ load('parseTools.js');
load('intertyper.js');
load('analyzer.js');
load('jsifier.js');
-load('runtime.js');
+eval(processMacros(preprocess(read('runtime.js'))));
//===============================
// Main
@@ -74,13 +74,5 @@ do {
// Do it
-var inter = intertyper(lines);
-
-// Load library, with preprocessing and macros. Must be done after intertyper, so we know if we have debug info or not
-for (suffix in set('', '_sdl', '_gl', '_browser')) {
- eval(processMacros(preprocess(read('library' + suffix + '.js'), CONSTANTS)));
-}
-LibraryManager.init();
-
-JSify(analyzer(inter));
+JSify(analyzer(intertyper(lines)));