Merge branch 'next' of github.com:h3rald/hex into next
h3rald h3rald@h3rald.com
Mon, 23 Dec 2024 23:57:14 +0000
3 files changed,
8 insertions(+),
6 deletions(-)
M
hex.vim
→
hex.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.html
→
releases/0.3.0.html
@@ -2,13 +2,15 @@ <h3 id="v0.3.0">v0.3.0 — <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.hex
→
scripts/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