This commit is contained in:
2025-09-12 16:38:16 -04:00
parent 7c08e8da4d
commit cb5fa27eb3
2 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
Differentiate kind literals, constructors, and kinds themselves.
EXCEPTION HANDLING: exception ast type should have as data a giant enum of
possible types, rather than a char* message. A description of each type could be
handled under the exception type and print logic. For now, executor checks

View File

@@ -11,9 +11,10 @@ typedef enum {
AST_TYPE_LIT_BOOL, // A boolean literal.
AST_TYPE_LIT_KIND, // A kind literal.
AST_TYPE_INT, // An integer.
AST_TYPE_SYM, // A symbol.
AST_TYPE_EXC, // Exception.
AST_TYPE_INT_CON, // An integer constructor.
AST_TYPE_BOOL_CON, // A boolean constructor.
AST_TYPE_KIND_CON, // A kind constructor.
AST_TYPE_EXC_CON, // Exception constructor.
// Collection types:
AST_TYPE_VEC, // A vector (fixed size, fixed type).