all repos — hex @ db0ec104d773b6484480e26e0ecb3ef5eeaf7ca2

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Renamed immediate flag to operator
Fabio Cevasco h3rald@h3rald.com
Sun, 22 Dec 2024 23:52:25 +0100
commit

db0ec104d773b6484480e26e0ecb3ef5eeaf7ca2

parent

e0111329106ca9c486a3fbe61b89083da0ad93dd

3 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/hex.hsrc/hex.h

@@ -78,7 +78,7 @@ char *str_value;

int (*fn_value)(hex_context_t *); struct hex_item_t **quotation_value; } data; - int immediate; + int operator; hex_token_t *token; // Token containing stack information (valid for HEX_TYPE_NATIVE_SYMBOL and HEX_TYPE_USER_SYMBOL) size_t quotation_size; // Size of the quotation (valid for HEX_TYPE_QUOTATION) } hex_item_t;
M src/stack.csrc/stack.c

@@ -33,7 +33,7 @@ hex_item_t value;

if (hex_get_symbol(ctx, item.token->value, &value)) { add_to_stack_trace(ctx, item.token); - if (value.type == HEX_TYPE_QUOTATION && value.immediate) + if (value.type == HEX_TYPE_QUOTATION && value.operator) { for (size_t i = 0; i < value.quotation_size; i++) {
M src/symbols.csrc/symbols.c

@@ -66,7 +66,7 @@ return 1;

} if (value.type == HEX_TYPE_QUOTATION) { - value.immediate = 1; + value.operator = 1; } if (hex_set_symbol(ctx, name.data.str_value, value, 0) != 0) {