all repos — hex @ 1098314d944bf7b428049ba964c5544863f7054a

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

Fixes.
h3rald h3rald@h3rald.com
Wed, 27 Nov 2024 19:13:48 +0100
commit

1098314d944bf7b428049ba964c5544863f7054a

parent

bfb3b8a72e4ad034ecddd2dce6b0e3312b6a764f

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

jump to
M hex.hhex.h

@@ -62,6 +62,8 @@ char *value;

hex_file_position_t position; } hex_token_t; +typedef struct hex_context_t hex_context_t; + typedef struct hex_item_t { hex_item_type_t type;

@@ -69,7 +71,7 @@ union

{ int32_t intValue; char *strValue; - int (*fnValue)(); + int (*fnValue)(hex_context_t *); struct hex_item_t **quotationValue; } data; hex_token_t *token; // Token containing stack information (valid for HEX_TYPE_NATIVE_SYMBOL and HEX_TYPE_USER_SYMBOL)