aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-08 21:45:41 +0800
committerGitHub <noreply@github.com>2017-06-08 21:45:41 +0800
commit21e0b69dcb189fb52ac4e38959801582e02ca8fd (patch)
treeb920c140d2bbedabfec3d5c401bc99968ddac91f /libsolidity/interface/AssemblyStack.h
parent51fcfbcf3f689ea8816e05b1ff9d17f391bc28e7 (diff)
parentaa310f9fec9bba90da2f1f57d77270dab673c6f4 (diff)
downloaddexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar.gz
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar.bz2
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar.lz
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar.xz
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.tar.zst
dexon-solidity-21e0b69dcb189fb52ac4e38959801582e02ca8fd.zip
Merge pull request #2348 from ethereum/asmstack-analyze
Add analyze() to AssemblyStack
Diffstat (limited to 'libsolidity/interface/AssemblyStack.h')
-rw-r--r--libsolidity/interface/AssemblyStack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h
index 62a5134a..abecaae2 100644
--- a/libsolidity/interface/AssemblyStack.h
+++ b/libsolidity/interface/AssemblyStack.h
@@ -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);
@@ -70,6 +74,7 @@ public:
std::string print();
private:
+ bool analyzeParsed();
Language m_language = Language::Assembly;