From b28f21a27b355fef18bb8daf75f447c69ddad8ee Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Wed, 14 Jan 2015 11:17:57 +0800 Subject: Local type resolution added, framework for local use statements --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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) -- cgit v1.2.3