diff options
author | Adrian Thurston <thurston@complang.org> | 2014-01-04 15:03:34 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-01-04 15:03:34 -0500 |
commit | b949085255d3cf3de598a6e8a6913dda882e70d6 (patch) | |
tree | fc888f6097f6edde2930e1b7c40cba89e4df326a /src/compiler.cc | |
parent | eeeef19991838f3424322d1e2129a582bd08952a (diff) | |
download | colm-b949085255d3cf3de598a6e8a6913dda882e70d6.tar.gz |
moved object init functions up to declare pass
Diffstat (limited to 'src/compiler.cc')
-rw-r--r-- | src/compiler.cc | 9 |
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(); |