diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-25 13:42:34 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-25 13:42:34 +0800 |
commit | a5be00d4761d314badc1dc4e9d0b63bb53eae07e (patch) | |
tree | 1eec4a8ad1abac79115ea74235d6c636e2e10830 /src/hir/pattern.hpp | |
parent | 423327162381b78599ffee6d200198665deaff26 (diff) | |
download | mrust-a5be00d4761d314badc1dc4e9d0b63bb53eae07e.tar.gz |
HIR - Support float patterns
Diffstat (limited to 'src/hir/pattern.hpp')
-rw-r--r-- | src/hir/pattern.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hir/pattern.hpp b/src/hir/pattern.hpp index 205acfcb..17f06a29 100644 --- a/src/hir/pattern.hpp +++ b/src/hir/pattern.hpp @@ -1,4 +1,9 @@ /* + * MRustC - Rust Compiler + * - By John Hodge (Mutabah/thePowersGang) + * + * hir/pattern.hpp + * - HIR Representation of patterns */ #pragma once @@ -50,6 +55,10 @@ struct Pattern enum ::HIR::CoreType type; // Str == _ uint64_t value; // Signed numbers are encoded as 2's complement }), + (Float, struct { + enum ::HIR::CoreType type; // Str == _ + double value; + }), (String, ::std::string), (Named, struct { Path path; |