Improved external interface for multi-source and multi-contract compilation.

This commit is contained in:
Christian
2014-12-03 18:52:28 +01:00
parent 254df50fea
commit d2cf345483
10 changed files with 50 additions and 43 deletions
+3
View File
@@ -54,6 +54,9 @@ public:
void parse();
/// Sets the given source code as the only source unit and parses it.
void parse(std::string const& _sourceCode);
/// Returns a list of the contract names in the sources.
std::vector<std::string> getContractNames();
/// Compiles the source units that were prevously added and parsed.
void compile(bool _optimize = false);
/// Parses and compiles the given source code.