all repos — hex @ fbd21a176eb705e6eb8d947ed24f27956f274b8c

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

Fixes.
h3rald h3rald@h3rald.com
Sun, 24 Nov 2024 15:13:16 +0000
commit

fbd21a176eb705e6eb8d947ed24f27956f274b8c

parent

d3f5166978981dd5c7a558fb23009cc6e5caf1a1

2 files changed, 6 insertions(+), 6 deletions(-)

jump to
M hex.chex.c

@@ -66,7 +66,7 @@ "and",

"or", "not", "xor", - "concat", + "cat", "slice", "len", "get",

@@ -1989,9 +1989,9 @@ }

//////////////////////////////////////// // Quotation/String symbols // -//////////////////////////////////////// +/////////////////////////////////////// -int hex_symbol_concat() +int hex_symbol_cat() { HEX_StackElement value = hex_pop(); if (value.type == HEX_TYPE_INVALID)

@@ -2053,7 +2053,7 @@ }

} else { - hex_error("Symbol 'concat' requires two quotations or two strings"); + hex_error("Symbol 'cat' requires two quotations or two strings"); result = 1; }

@@ -3549,7 +3549,7 @@ hex_set_native_symbol("and", hex_symbol_and);

hex_set_native_symbol("or", hex_symbol_or); hex_set_native_symbol("not", hex_symbol_not); hex_set_native_symbol("xor", hex_symbol_xor); - hex_set_native_symbol("concat", hex_symbol_concat); + hex_set_native_symbol("cat", hex_symbol_cat); hex_set_native_symbol("slice", hex_symbol_slice); hex_set_native_symbol("len", hex_symbol_len); hex_set_native_symbol("get", hex_symbol_get);
M tests.hextests.hex

@@ -20,7 +20,7 @@ if

) ( ; Store error - ;errors test-count str " - " concat error concat q concat "errors" store + errors test-count str " - " cat error cat q cat "errors" store "x" print failures 0x1 + "failures" store )