summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-01-04 15:03:34 -0500
committerAdrian Thurston <thurston@complang.org>2014-01-04 15:03:34 -0500
commitd2d527d69b8bb6d6de774e76cfc746e375a07b73 (patch)
treefc888f6097f6edde2930e1b7c40cba89e4df326a
parent375380acfc9726e342b5fe03a6bbeb9079c1476b (diff)
downloadcolm-d2d527d69b8bb6d6de774e76cfc746e375a07b73.tar.gz
moved object init functions up to declare pass
-rw-r--r--src/compiler.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler.cc b/src/compiler.cc
index 417e33ba..071b1889 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1121,6 +1121,11 @@ void Compiler::compile()
declarePass();
+ initIntObject();
+ initStrObject();
+ initStreamObject();
+ initTokenObjects();
+
/* Fill any empty scanners with a default token. */
initEmptyScanners();
@@ -1139,10 +1144,6 @@ void Compiler::compile()
prepGrammar();
- initIntObject();
- initStrObject();
- initStreamObject();
- initTokenObjects();
initAllLanguageObjects();
initGenericTypes();
initGlobalFunctions();