summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 19841c12..f35f93ce 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -12,16 +12,17 @@ extern AST::Flat Convert_Flatten(const AST::Crate& crate);
/// main!
int main(int argc, char *argv[])
{
+ Serialiser_TextTree s_tt(::std::cout);
+ Serialiser& s = s_tt;
try
{
AST::Crate crate = Parse_Crate("samples/1.rs");
- Serialiser_TextTree s_tt(::std::cout);
- Serialiser& s = s_tt;
s << crate;
// Resolve names to be absolute names (include references to the relevant struct/global/function)
ResolvePaths(crate);
+ s << crate;
// Typecheck / type propagate module (type annotations of all values)