diff --git a/main.cpp b/main.cpp index 6fca11a67..a92f466ec 100644 --- a/main.cpp +++ b/main.cpp @@ -8,11 +8,12 @@ #include #include #include +#include namespace dev { namespace solidity { -ptr parseAST(std::string const& _source) +ptr parseAST(std::string const& _source) { ptr scanner = std::make_shared(CharStream(_source)); Parser parser; @@ -70,9 +71,12 @@ int main(int argc, char** argv) std::cout << "Parsing..." << std::endl; // @todo catch exception - dev::solidity::ptr ast = dev::solidity::parseAST(src); + dev::solidity::ptr ast = dev::solidity::parseAST(src); std::cout << "Syntax tree for the contract:" << std::endl; dev::solidity::ASTPrinter printer(ast, src); printer.print(std::cout); + std::cout << "Resolving identifiers..." << std::endl; + dev::solidity::NameAndTypeResolver resolver; + resolver.resolveNamesAndTypes(*ast.get()); return 0; }