summaryrefslogtreecommitdiff
path: root/src/core/interpret.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-20 21:53:23 +0200
committerPaul Buetow <paul@buetow.org>2026-02-20 21:53:23 +0200
commit43614694706ac61b2cebef486b7fa9368c78fe6a (patch)
tree06fc10249b5f5e02449d93cf5f52bf80590f1bea /src/core/interpret.h
parent03b874818315e7dc9fb2ccf26716a0fb65242a57 (diff)
Add README.md and array slicing support
Diffstat (limited to 'src/core/interpret.h')
-rw-r--r--src/core/interpret.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/interpret.h b/src/core/interpret.h
index 972c49d..7c2eba8 100644
--- a/src/core/interpret.h
+++ b/src/core/interpret.h
@@ -66,6 +66,10 @@ typedef struct {
Token *p_token_prev;
TokenType tt_prev;
Token *p_token_temp;
+ /* LHS array token set by _term_array_access for arr[i] = val */
+ Token *p_token_array_lhs;
+ /* Array index set alongside p_token_array_lhs */
+ int i_array_lhs_index;
} Interpret;
Interpret* interpret_new(List *p_list_token, Hash *p_hash_syms);