diff options
Diffstat (limited to 'src/hir/pattern.cpp')
-rw-r--r-- | src/hir/pattern.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/hir/pattern.cpp b/src/hir/pattern.cpp index c5c2ef93..a2c9ef27 100644 --- a/src/hir/pattern.cpp +++ b/src/hir/pattern.cpp @@ -1,10 +1,20 @@ - +/* + * MRustC - Rust Compiler + * - By John Hodge (Mutabah/thePowersGang) + * + * hir/pattern.cpp + * - HIR Representation of patterns + */ #include "pattern.hpp" namespace HIR { ::std::ostream& operator<<(::std::ostream& os, const Pattern::Value& x) { TU_MATCH(Pattern::Value, (x), (e), (Integer, + // TODO: Print with type (and signed-ness) + os << e.value; + ), + (Float, // TODO: Print with type os << e.value; ), @@ -147,6 +157,9 @@ namespace { (Integer, return ::HIR::Pattern::Value::make_Integer(e); ), + (Float, + return ::HIR::Pattern::Value::make_Float(e); + ), (String, return ::HIR::Pattern::Value::make_String(e); ), |