diff options
| author | Nakidai <nakidai@disroot.org> | 2025-03-25 14:35:06 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-03-25 14:35:06 +0300 |
| commit | 2d5f634d0d28a0762835afa01dd1e9eb212e4803 (patch) | |
| tree | e3e141464181f88dff69c32e1cb48b6f9e258f37 /cccl.h | |
| parent | 98a243bf9ab1a3e8bd2de56d7b16302f303f323a (diff) | |
| download | 3cl-2d5f634d0d28a0762835afa01dd1e9eb212e4803.tar.gz 3cl-2d5f634d0d28a0762835afa01dd1e9eb212e4803.zip | |
Implement all instructions
Something doesn't work, though
Diffstat (limited to 'cccl.h')
| -rw-r--r-- | cccl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cccl.h b/cccl.h index 37b0970..5452b26 100644 --- a/cccl.h +++ b/cccl.h @@ -65,7 +65,7 @@ enum cccl_ExecutorStatus { cccl_Executr_OK = 0, cccl_Executor_ERROR, - cccl_EXECUTOR_CONTINUE, + cccl_Executor_CONTINUE, cccl_Executor_END, }; @@ -95,6 +95,10 @@ int cccl_allocfile(const char *path, struct cccl_File *file); void cccl(struct cccl_File file); size_t cccl_tokenize(const char *code, size_t size, struct cccl_Token tokens[], size_t tokens_length); struct cccl_Node *cccl_parse(struct cccl_Token tokens[], size_t tokens_length, enum cccl_NodeType type, char value); -enum cccl_ExecutorStatus cccl_execute(struct cccl_Node *code, struct cccl_Variables *scope); +enum cccl_ExecutorStatus cccl_execute(struct cccl_Node *code, struct cccl_Variables *scope, size_t depth); + +const char *strtoken(enum cccl_TokenType type); +const char *strnode(enum cccl_NodeType type); +const char *strstatus(enum cccl_ExecutorStatus status); #endif /* __CCCL_H__ */ |