diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-17 10:20:41 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-17 10:20:41 +0800 |
commit | ba096985c2d2486592037f03e67c500d74292a83 (patch) | |
tree | 7981e81a29a0820ebd6c9afd993fa7d50692c93a /src/ast/pattern.hpp | |
parent | 80e4060188913eb12ad8a774b07d3b938485a49a (diff) | |
download | mrust-ba096985c2d2486592037f03e67c500d74292a83.tar.gz |
Adding deserialise, partially working
Diffstat (limited to 'src/ast/pattern.hpp')
-rw-r--r-- | src/ast/pattern.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast/pattern.hpp b/src/ast/pattern.hpp index 70253c09..70fc77f4 100644 --- a/src/ast/pattern.hpp +++ b/src/ast/pattern.hpp @@ -13,7 +13,8 @@ using ::std::move; class ExprNode; -class Pattern +class Pattern: + public Serialisable { public: enum BindType { @@ -81,6 +82,8 @@ public: const ::std::vector<Pattern>& sub_patterns() const { return m_sub_patterns; } friend ::std::ostream& operator<<(::std::ostream& os, const Pattern& pat); + + SERIALISABLE_PROTOTYPES(); }; }; |