summary refs log tree commit diff
path: root/cccl.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-25 16:22:45 +0300
committerNakidai <nakidai@disroot.org>2025-03-25 16:22:45 +0300
commit017ec3b6dc3e1badd9bb9505029802c6f6986c4b (patch)
treeb01e284a7aea1852632f6220c2cac11712d4254b /cccl.h
parent2d5f634d0d28a0762835afa01dd1e9eb212e4803 (diff)
download3cl-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.h3
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);