aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-27 00:07:38 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-04-27 21:12:43 +0800
commitb48bc81d402afdc704cb43a9d16dd51c9a6d7555 (patch)
tree4091d09796057a7c2fe94ec69281029a07230e91 /libsolidity/inlineasm/AsmParser.h
parent122dc65b3608b368897701dbdebc689bc614933f (diff)
downloaddexon-solidity-b48bc81d402afdc704cb43a9d16dd51c9a6d7555.tar.gz
dexon-solidity-b48bc81d402afdc704cb43a9d16dd51c9a6d7555.tar.zst
dexon-solidity-b48bc81d402afdc704cb43a9d16dd51c9a6d7555.zip
Add flag for JULIA parsing
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.h')
-rw-r--r--libsolidity/inlineasm/AsmParser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmParser.h b/libsolidity/inlineasm/AsmParser.h
index 4b4a24ae..c55fd2ac 100644
--- a/libsolidity/inlineasm/AsmParser.h
+++ b/libsolidity/inlineasm/AsmParser.h
@@ -37,7 +37,7 @@ namespace assembly
class Parser: public ParserBase
{
public:
- Parser(ErrorList& _errors): ParserBase(_errors) {}
+ explicit Parser(ErrorList& _errors, bool _julia = false): ParserBase(_errors), m_julia(_julia) {}
/// Parses an inline assembly block starting with `{` and ending with `}`.
/// @returns an empty shared pointer on error.
@@ -70,6 +70,9 @@ protected:
FunctionDefinition parseFunctionDefinition();
Statement parseFunctionalInstruction(Statement&& _instruction);
std::string expectAsmIdentifier();
+
+private:
+ bool m_julia = false;
};
}