aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmStack.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-02-15 22:41:45 +0800
committerGitHub <noreply@github.com>2017-02-15 22:41:45 +0800
commitad751bd3e6f22fadc01d43610ec2e2e008c32f11 (patch)
tree12a9fe2556bd87a0d7e2695db724d65434f40f42 /libsolidity/inlineasm/AsmStack.h
parent4189ff5b68f119878807104ebac0137171c8ecd6 (diff)
parent5e8a1e0ae6dcd269258fe4239060bcc890abacb5 (diff)
downloaddexon-solidity-ad751bd3e6f22fadc01d43610ec2e2e008c32f11.tar.gz
dexon-solidity-ad751bd3e6f22fadc01d43610ec2e2e008c32f11.tar.zst
dexon-solidity-ad751bd3e6f22fadc01d43610ec2e2e008c32f11.zip
Merge pull request #1674 from ethereum/assemblyPrinter
Assembly printer.
Diffstat (limited to 'libsolidity/inlineasm/AsmStack.h')
-rw-r--r--libsolidity/inlineasm/AsmStack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmStack.h b/libsolidity/inlineasm/AsmStack.h
index 1543cb2a..4d5a99a4 100644
--- a/libsolidity/inlineasm/AsmStack.h
+++ b/libsolidity/inlineasm/AsmStack.h
@@ -46,6 +46,10 @@ public:
/// Parse the given inline assembly chunk starting with `{` and ending with the corresponding `}`.
/// @return false or error.
bool parse(std::shared_ptr<Scanner> const& _scanner);
+ /// Converts the parser result back into a string form (not necessarily the same form
+ /// as the source form, but it should parse into the same parsed form again).
+ std::string toString();
+
eth::Assembly assemble();
/// Parse and assemble a string in one run - for use in Solidity code generation itself.