diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-12 20:39:40 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-12 20:39:40 +0800 |
commit | 7e015ae7232b9be3656787addaad045b50bc9751 (patch) | |
tree | 0fbd34911bd106bfc68c6bb6949b650824048155 /CommandLineInterface.cpp | |
parent | dec565f882d2240e9fe967e63f3af30708d10989 (diff) | |
parent | 72385175aa8a5e500e62e441c8ac02c3323a1d4f (diff) | |
download | dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar.gz dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar.bz2 dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar.lz dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar.xz dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.tar.zst dexon-solidity-7e015ae7232b9be3656787addaad045b50bc9751.zip |
Merge remote-tracking branch 'upstream/develop' into evmjit
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r-- | CommandLineInterface.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 08acb5eb..6ed90cde 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -272,7 +272,7 @@ bool CommandLineInterface::processInput() while (!cin.eof()) { getline(cin, s); - m_sourceCodes["<stdin>"].append(s); + m_sourceCodes["<stdin>"].append(s + '\n'); } } else @@ -345,18 +345,11 @@ bool CommandLineInterface::processInput() void CommandLineInterface::handleAst(string const& _argStr) { string title; - string suffix; if (_argStr == g_argAstStr) - { title = "Syntax trees:"; - suffix = ".ast"; - } else if (_argStr == g_argAstJson) - { title = "JSON AST:"; - suffix = ".json"; - } else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal argStr for AST")); |