This commit is contained in:
Nilton Constantino
2026-01-31 01:18:42 +00:00
parent ef8b7b524a
commit 180c7e19e0
8 changed files with 242 additions and 28 deletions
@@ -5,6 +5,7 @@ use std::fmt;
pub enum Type {
Void,
Int,
Bounded,
Float,
Bool,
String,
@@ -26,6 +27,7 @@ impl fmt::Display for Type {
match self {
Type::Void => write!(f, "void"),
Type::Int => write!(f, "int"),
Type::Bounded => write!(f, "bounded"),
Type::Float => write!(f, "float"),
Type::Bool => write!(f, "bool"),
Type::String => write!(f, "string"),