summaryrefslogtreecommitdiff
path: root/src/compiler.cc
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
commitb949085255d3cf3de598a6e8a6913dda882e70d6 (patch)
treefc888f6097f6edde2930e1b7c40cba89e4df326a /src/compiler.cc
parenteeeef19991838f3424322d1e2129a582bd08952a (diff)
downloadcolm-b949085255d3cf3de598a6e8a6913dda882e70d6.tar.gz
moved object init functions up to declare pass
Diffstat (limited to 'src/compiler.cc')
-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();