aboutsummaryrefslogtreecommitdiff
path: root/compilador/ast/type.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilador/ast/type.py')
-rw-r--r--compilador/ast/type.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/compilador/ast/type.py b/compilador/ast/type.py
new file mode 100644
index 0000000..62a56e9
--- /dev/null
+++ b/compilador/ast/type.py
@@ -0,0 +1,11 @@
+from enum import Enum
+
+# A built-in primitive type (int, bool, str, etc).
+class BuiltinType(Enum):
+ BOOLEAN = 'booleano'
+ STRING = 'cadena'
+ CHAR = 'caracter'
+ INT = 'entero'
+ VOID = 'vacio'
+
+Type = BuiltinType