aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/ObjectParser.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-03 22:49:23 +0800
committerchriseth <chris@ethereum.org>2018-12-04 19:06:33 +0800
commit99db4e3ff45c2a8d5d9c645774f099b82b7618ec (patch)
tree9f61e6b6192141bf9233f49a4a2c36e5c26ca8df /libyul/ObjectParser.h
parente49f37be7f64d0306c2e63cea81eb98aa1bc85f1 (diff)
downloaddexon-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.h7
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;
};
}