diff options
author | chriseth <chris@ethereum.org> | 2018-12-03 22:49:23 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-04 19:06:33 +0800 |
commit | 99db4e3ff45c2a8d5d9c645774f099b82b7618ec (patch) | |
tree | 9f61e6b6192141bf9233f49a4a2c36e5c26ca8df /libyul/ObjectParser.h | |
parent | e49f37be7f64d0306c2e63cea81eb98aa1bc85f1 (diff) | |
download | dexon-solidity-99db4e3ff45c2a8d5d9c645774f099b82b7618ec.tar.gz dexon-solidity-99db4e3ff45c2a8d5d9c645774f099b82b7618ec.tar.zst dexon-solidity-99db4e3ff45c2a8d5d9c645774f099b82b7618ec.zip |
Introduce the concept of builtin functions.
Diffstat (limited to 'libyul/ObjectParser.h')
-rw-r--r-- | libyul/ObjectParser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libyul/ObjectParser.h b/libyul/ObjectParser.h index 1d88a119..59efb8ab 100644 --- a/libyul/ObjectParser.h +++ b/libyul/ObjectParser.h @@ -22,6 +22,7 @@ #include <libyul/YulString.h> #include <libyul/Object.h> +#include <libyul/Dialect.h> #include <liblangutil/ErrorReporter.h> #include <liblangutil/ParserBase.h> @@ -46,9 +47,9 @@ class ObjectParser: public langutil::ParserBase public: explicit ObjectParser( langutil::ErrorReporter& _errorReporter, - yul::AsmFlavour _flavour = yul::AsmFlavour::Loose + Dialect _dialect = Dialect::looseAssemblyForEVM() ): - ParserBase(_errorReporter), m_flavour(_flavour) {} + ParserBase(_errorReporter), m_dialect(std::move(_dialect)) {} /// Parses a Yul object. /// Falls back to code-only parsing if the source starts with `{`. @@ -66,7 +67,7 @@ private: YulString parseUniqueName(Object const* _containingObject); void addNamedSubObject(Object& _container, YulString _name, std::shared_ptr<ObjectNode> _subObject); - yul::AsmFlavour m_flavour; + Dialect m_dialect; }; } |