aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.h')
-rw-r--r--libsolidity/inlineasm/AsmParser.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/libsolidity/inlineasm/AsmParser.h b/libsolidity/inlineasm/AsmParser.h
index fe84470d..b54da941 100644
--- a/libsolidity/inlineasm/AsmParser.h
+++ b/libsolidity/inlineasm/AsmParser.h
@@ -31,25 +31,28 @@ namespace dev
{
namespace solidity
{
+namespace assembly
+{
-class InlineAssemblyParser: public ParserBase
+class Parser: public ParserBase
{
public:
- InlineAssemblyParser(ErrorList& _errors): ParserBase(_errors) {}
+ Parser(ErrorList& _errors): ParserBase(_errors) {}
/// Parses an inline assembly block starting with `{` and ending with `}`.
/// @returns an empty shared pointer on error.
- std::shared_ptr<AsmData> parse(std::shared_ptr<Scanner> const& _scanner);
+ std::shared_ptr<Block> parse(std::shared_ptr<Scanner> const& _scanner);
protected:
- AsmData::Block parseBlock();
- AsmData::Statement parseStatement();
+ Block parseBlock();
+ Statement parseStatement();
/// Parses a functional expression that has to push exactly one stack element
- AsmData::Statement parseExpression();
- AsmData::Statement parseElementaryOperation(bool _onlySinglePusher = false);
- AsmData::VariableDeclaration parseVariableDeclaration();
- AsmData::FunctionalInstruction parseFunctionalInstruction(AsmData::Statement const& _instruction);
+ Statement parseExpression();
+ Statement parseElementaryOperation(bool _onlySinglePusher = false);
+ VariableDeclaration parseVariableDeclaration();
+ FunctionalInstruction parseFunctionalInstruction(Statement const& _instruction);
};
}
}
+}