all repos — hex @ 55725e09fcf63104c722f031df98b8ec33a59aa3

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

Minor improvements to the manual.
h3rald h3rald@h3rald.com
Thu, 12 Dec 2024 10:12:28 +0100
commit

55725e09fcf63104c722f031df98b8ec33a59aa3

parent

c8fd0487fc403822fb565bdad3a03555aa642492

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M src/hex.csrc/hex.c

@@ -3970,15 +3970,16 @@ }

void hex_print_docs(hex_doc_dictionary_t *docs) { - printf(" _*_ _\n" + printf("\n" + " _*_ _\n" " / \\hex\\*\n" " *\\_/_/_/ v%s - (c) 2024 Fabio Cevasco\n" " * \n", HEX_VERSION); printf("\n" "BASICS\n" - " hex is a minimalist, concatenative programming language that supports only integers,\n" - " strings, symbols, and quotations (lists).\n" + " hex is a minimalist, slightly-esoteric, concatenative programming language that supports\n" + " only integers, strings, symbols, and quotations (lists).\n" "\n" " It uses a stack-based execution model and provides 64 native symbols for stack\n" " manipulation, arithmetic operations, control flow, reading and writing\n"

@@ -3986,11 +3987,12 @@ " (standard input/output/error and files), executing external processes, and more.\n"

"\n" " Symbols and literals are separated by whitespace and can be grouped in quotations using\n" " parentheses.\n" + "\n" " Symbols are evaluated only when they are pushed on the stack, therefore, symbols inside\n" " quotations are not evaluated until the contents of the quotation are pushed on the stack.\n" - " You can define your own symbols using the symbol 'store' and execute a quotation with 'i'.\n" + " You can define your own symbols using the symbol ':' and execute a quotation with '.'.\n" "\n" - " Oh, and of course all integers are hexadecimal! ;)\n" + " Oh, and of course all integers are in hexadecimal format! ;)\n" "\n" "SYMBOLS\n" " +---------+----------------------------+-------------------------------------------------+\n"