all repos — hex @ 01fd42afd71e7016baedb9aa959b9c5fb69678e6

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

Updates.
h3rald h3rald@h3rald.com
Mon, 02 Dec 2024 11:36:27 +0100
commit

01fd42afd71e7016baedb9aa959b9c5fb69678e6

parent

f69d4c8a605f788f89d26efcdf9a39232c8bdbc9

3 files changed, 4 insertions(+), 3 deletions(-)

jump to
M .gitignore.gitignore

@@ -44,7 +44,6 @@ *.pdb

# Kernel Module Compile Results *.mod* -*.cmd .tmp_versions/ modules.order Module.symvers
A build.cmd

@@ -0,0 +1,2 @@

+gcc -Wall -Wextra -g hex.c -o hex.exe +emcc -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js
M web.hexweb.hex

@@ -22,7 +22,7 @@ t_page read "{{content}}" content replace "new_content" store

(fn_content "home.html" ==) (d_out "/index.html" cat "dst_file" store) ( - ("mkdir -p " d_out "/" id_content) () map "" join exec + ("sh -c \"mkdir -p " d_out "/" id_content "\"") () map "" exec (d_out id_content "index.html") () map "/" join "dst_file" store ) if

@@ -31,7 +31,7 @@ new_content dst_file write

) each ; Write assets -("mkdir -p " d_out "/assets") () map "" join exec +("sh -c \"mkdir -p " d_out "/assets\"") () map "" join exec assets ( "fn_asset" store