fix: correct Cell union and add interpreter, main, word implementations

Co-authored-by: aider (openrouter/tencent/hy3-preview:free) <aider@aider.chat>
This commit is contained in:
2026-05-03 16:59:53 +03:00
parent 0d9b7e3424
commit e5c6fdf9d0
4 changed files with 383 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ typedef struct Word Word;
typedef union Cell {
Word* word;
int32_t num;
Cell* cell_ptr; // For storing ip (Cell*) in return stack
union Cell* cell_ptr; // Use union tag here, as typedef Cell is not available yet
} Cell;
struct Word {