aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-31 02:11:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-31 02:11:03 -0400
commit7a172be6213839a3d023ba21c3bafd7540a4bfe8 (patch)
tree5646ba0e4c0690fe64711fb77658308541de695b /src/ast.h
parentd3655740cc6a8e6c4788946af412065fb52f51dc (diff)
Remove threads and mutexed data from the language in favor of a
module-based approach
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ast.h b/src/ast.h
index 2260436f..b5b1ad3c 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -75,7 +75,6 @@ typedef enum {
TableTypeAST,
FunctionTypeAST,
OptionalTypeAST,
- MutexedTypeAST,
} type_ast_e;
typedef struct tag_ast_s {
@@ -114,7 +113,7 @@ struct type_ast_s {
} FunctionTypeAST;
struct {
type_ast_t *type;
- } OptionalTypeAST, MutexedTypeAST;
+ } OptionalTypeAST;
} __data;
};
@@ -126,7 +125,7 @@ typedef enum {
Path,
Declare, Assign,
BinaryOp, UpdateAssign,
- Not, Negative, HeapAllocate, StackReference, Mutexed, Holding,
+ Not, Negative, HeapAllocate, StackReference,
Min, Max,
Array, Set, Table, TableEntry, Comprehension,
FunctionDef, Lambda, ConvertDef,
@@ -194,10 +193,7 @@ struct ast_s {
} BinaryOp, UpdateAssign;
struct {
ast_t *value;
- } Not, Negative, HeapAllocate, StackReference, Mutexed;
- struct {
- ast_t *mutexed, *body;
- } Holding;
+ } Not, Negative, HeapAllocate, StackReference;
struct {
ast_t *lhs, *rhs, *key;
} Min, Max;