From 979325946b938be7cbe51f8c20c44e457107979f Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 20 Nov 2016 21:05:01 +0100 Subject: Sugar and prelude extension --- ast.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ast.h') diff --git a/ast.h b/ast.h index c0b0d90..700fc80 100644 --- a/ast.h +++ b/ast.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -82,4 +83,13 @@ public: static AST makeNative(const Native &native); }; +namespace std { + template <> + struct hash{ + size_t operator()(const AST::Type &type) const { + return (size_t)type; + } + }; +} + ostream& operator<<(ostream &os,const AST &ast); -- cgit v1.2.3-70-g09d2