From 93513175207546648474d1bb64616c99cf541b84 Mon Sep 17 00:00:00 2001 From: rbonifacio Date: Tue, 12 Nov 2024 09:41:34 -0300 Subject: [PATCH] Definicao do tipo algebrico 'Type'. --- src/ir/ast.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ir/ast.rs b/src/ir/ast.rs index 378c57a..fecc750 100644 --- a/src/ir/ast.rs +++ b/src/ir/ast.rs @@ -1,5 +1,14 @@ pub type Name = String; +pub enum Type { + TInteger, + TBool, + TReal, + TString, + TList(Box), + TTuple(Vec), +} + pub enum Expression { CInt(i32), Var(String),