all repos — hex @ 4835c89e0109537a63d8da533c82ce83c295443a

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

Merge branch 'next' of github.com:h3rald/hex into next
h3rald h3rald@h3rald.com
Mon, 23 Dec 2024 23:57:14 +0000
commit

4835c89e0109537a63d8da533c82ce83c295443a

parent

c03ae72d0b0872429a8a368ff2603ef5b0eef0ca

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

jump to
M hex.vimhex.vim

@@ -2,14 +2,14 @@ " Vim syntax file

" Language: hex " Maintainer: Fabio Cevasco " Last Change: 2024-12-10 -" Version: 0.1.0 +" Version: 0.3.0 if exists("b:current_syntax") finish endif -syntax keyword hexNativeSymbol if when while error try dup pop swap stack clear and or not xor int str hex dec type -syntax keyword hexNativeSymbol cat chr len get ord index join split replace each map puts warn print gets +syntax keyword hexNativeSymbol if when while error symbols throw try dup pop swap stack and or not xor int str hex dec type +syntax keyword hexNativeSymbol cat chr len get ord index join split replace map puts warn print gets syntax keyword hexNativeSymbol read write append args exit exec run syntax match hexNativeSymbol /\v\!/ syntax match hexNativeSymbol /\v\!\=/
M releases/0.3.0.htmlreleases/0.3.0.html

@@ -2,13 +2,15 @@ <h3 id="v0.3.0">v0.3.0 &mdash; <em>Under Development</em></h3>

<h4>Breaking Changes</h4> <ul> - <li>Removed the native symbol %:filter%%.</li> + <li>Removed the native symbols %:filter%%, %:clear%%, and %:each%%.</li> <li>Bytecode: some opcodes changes values; programs compiled with tbe previous version must be recompiled.</li> </ul> <h4>New Features</h4> <ul> - <li>Added a symbol {{sym-::}} to define operators (immediately-dequoted quotations).</li> + <li>Added symbol {{sym-::}} to define operators (immediately-dequoted quotations).</li> + <li>Added symbol {{sym-symbols}} to get a list of all stored symbols</li> + <li>Added symbol {{sym-throw}} to throw an error.</li> <li>Increased the size of the STDIN buffer to 16Kb.</li> </ul>
M scripts/web.hexscripts/web.hex

@@ -17,7 +17,7 @@ d-templates "/page.html" cat "t-page" :

; Symbols to substitute with the corresponding links ("split" "run" "get" "puts" ":" "::" "." "#" "==" "'" "swap" "dup" -"+" "*" "-" "each" "cat" "print" "read" "dec" "write" "append" "!" "<=" "if") "symbol-links" : +"+" "*" "-" "each" "cat" "throw" "symbols" "print" "read" "dec" "write" "append" "!" "<=" "if") "symbol-links" : ;; Syntax highlighting