diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-14 11:17:57 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-14 11:17:57 +0800 |
commit | b28f21a27b355fef18bb8daf75f447c69ddad8ee (patch) | |
tree | dd115261038500de90e0bedb1100ea906e5ecdb8 /src/main.cpp | |
parent | b3058a63847bd1d2b58765c279b0c29e60eb65ea (diff) | |
download | mrust-b28f21a27b355fef18bb8daf75f447c69ddad8ee.tar.gz |
Local type resolution added, framework for local use statements
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
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)
|