summaryrefslogtreecommitdiff
path: root/src/ast/ast.h
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-24 12:14:48 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-24 12:14:48 +0000
commit812fe9cbe124bf39a06f58a538c8c01f7402fb09 (patch)
tree8ea1f8258714e7dd8916eb221006e45082a129bb /src/ast/ast.h
parent22035400ed7b7fcda088a1a5b1ca6505b23bf63f (diff)
Fix for #110
Diffstat (limited to 'src/ast/ast.h')
-rw-r--r--src/ast/ast.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 6ef5d7a..5bcc4d5 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -11,6 +11,15 @@ typedef struct ASTNode ASTNode;
// ** Formal Type System **
// Used for Generics, Type Inference, and robust pointer handling.
+
+typedef enum
+{
+ LITERAL_INT = 0,
+ LITERAL_FLOAT = 1,
+ LITERAL_STRING = 2,
+ LITERAL_CHAR = 3
+} LiteralKind;
+
typedef enum
{
TYPE_VOID,
@@ -329,7 +338,7 @@ struct ASTNode
struct
{
- int type_kind;
+ LiteralKind type_kind;
unsigned long long int_val;
double float_val;
char *string_val;