Add analyze(block) to AssemblyStack

This commit is contained in:
Alex Beregszaszi
2017-06-07 14:42:22 +01:00
parent 937c208320
commit 502304f30b
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -60,6 +60,10 @@ public:
/// Multiple calls overwrite the previous state.
bool parseAndAnalyze(std::string const& _sourceName, std::string const& _source);
/// Runs analysis step on the supplied block, returns false if input cannot be assembled.
/// Multiple calls overwrite the previous state.
bool analyze(assembly::Block const& _block, Scanner const* _scanner = nullptr);
/// Run the assembly step (should only be called after parseAndAnalyze).
eth::LinkerObject assemble(Machine _machine);