diff options
Diffstat (limited to 'src/ast.rs')
-rw-r--r-- | src/ast.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,14 +25,15 @@ pub type Value = u64; #[derive(Debug, Clone, PartialEq, Eq)] pub enum Type { Empty, + Error, Unit, Boolean, Natural, Integer, // Float, // String, - // Enum(Vec<Type>), - // Record(Vec<Type>), + Enum(Vec<Type>), + Record(HashMap<Identifier, Type>), Function{from: Box<Type>, to: Box<Type>}, } |