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 | d2d527d69b8bb6d6de774e76cfc746e375a07b73 (patch) | |
tree | fc888f6097f6edde2930e1b7c40cba89e4df326a | |
parent | 375380acfc9726e342b5fe03a6bbeb9079c1476b (diff) | |
download | colm-d2d527d69b8bb6d6de774e76cfc746e375a07b73.tar.gz |
moved object init functions up to declare pass
-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(); |