diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-27 00:07:38 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-28 01:16:42 +0800 |
commit | 01b60a4f8d7d9676d35c582d8ba265d10e4b65da (patch) | |
tree | 1bc132e3732c24cc699697fa883694e752bb0590 /libsolidity | |
parent | 3926e8704af00062c33e392fcaef70510df7012e (diff) | |
download | dexon-solidity-01b60a4f8d7d9676d35c582d8ba265d10e4b65da.tar.gz dexon-solidity-01b60a4f8d7d9676d35c582d8ba265d10e4b65da.tar.zst dexon-solidity-01b60a4f8d7d9676d35c582d8ba265d10e4b65da.zip |
Add flag for JULIA parsing
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.h | 5 |
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; }; } |