diff options
| author | Nakidai <nakidai@disroot.org> | 2025-03-25 16:22:45 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-03-25 16:22:45 +0300 |
| commit | 017ec3b6dc3e1badd9bb9505029802c6f6986c4b (patch) | |
| tree | b01e284a7aea1852632f6220c2cac11712d4254b /cccl.h | |
| parent | 2d5f634d0d28a0762835afa01dd1e9eb212e4803 (diff) | |
| download | 3cl-017ec3b6dc3e1badd9bb9505029802c6f6986c4b.tar.gz 3cl-017ec3b6dc3e1badd9bb9505029802c6f6986c4b.zip | |
Add some cool features
- I absolutely forgot about # and :, but now fortunately it's a fixed problem - Add -d flag so 3cl will dump its state after executing
Diffstat (limited to 'cccl.h')
| -rw-r--r-- | cccl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cccl.h b/cccl.h index 5452b26..8bf3d0c 100644 --- a/cccl.h +++ b/cccl.h @@ -89,6 +89,8 @@ struct cccl_Stack }; extern int verbose; +extern int interactive; +extern int dump; int cccl_allocfile(const char *path, struct cccl_File *file); @@ -96,6 +98,7 @@ 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, size_t depth); +void cccl_dump(void); const char *strtoken(enum cccl_TokenType type); const char *strnode(enum cccl_NodeType type); |