all repos — hex @ e1ce2080fc55ce085717e3d7d6016bd65f9d15f4

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

Improved playground.
h3rald h3rald@h3rald.com
Sun, 22 Dec 2024 10:43:01 +0100
commit

e1ce2080fc55ce085717e3d7d6016bd65f9d15f4

parent

52d5abbb6c9084c9f87b8d6e29a117628f8f03c3

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

jump to
M src/hex.hsrc/hex.h

@@ -21,7 +21,7 @@ #endif

// Constants #define HEX_VERSION "0.2.0" -#define HEX_STDIN_BUFFER_SIZE 4096 +#define HEX_STDIN_BUFFER_SIZE 16384 #define HEX_REGISTRY_SIZE 1024 #define HEX_STACK_SIZE 256 #define HEX_STACK_TRACE_SIZE 16
M web/assets/hex-playground.jsweb/assets/hex-playground.js

@@ -19,7 +19,7 @@ outputBox.textContent += text + "\n";

}; eval.addEventListener("click", (e) => { - const data = textarea.value.replace(/;.*?\n/g, ' ').replace(/#|.*?|#/mg, '').replace(/\n/mg, ' '); + const data = textarea.value.replace(/^#!.*?\n/, '').replace(/;.*?\n/g, ' ').replace(/#|.*?|#/mg, '').replace(/\n/mg, ' '); Module.pending_lines.push(data); let resolver = Module.pending_fgets.shift(); resolver(Module.pending_lines.shift());