Adds preliminary type enums.

This commit is contained in:
Jacob Signorovitch 2025-02-07 17:29:30 -05:00
parent cddf5eed76
commit 3678940537

View File

@ -4,8 +4,18 @@
#include <stdlib.h>
typedef enum {
AST_TYPE_NUM, // A number.
AST_TYPE_CALL, // A function call.
// Primitive types.
AST_TYPE_NUM, // A number (float).
AST_TYPE_STR, // A string
AST_TYPE_INT, // An integer.
AST_TYPE_SYM, // A symbol.
// Complex types:
AST_TYPE_VEC, // A vector (fixed size, fixed type).
AST_TYPE_LIST, // A list (variable size, variable type).
// Misc. types.
AST_TYP AST_TYPE_CALL, // A function call.
AST_TYPE_VDEF, // A variable definition.
AST_TYPE_VREF, // A variable reference.
AST_TYPE_BLOCK, // A block of code (scope).