all repos — hex @ e3f310213f3b315fff0a2ae8e0ddac17fcb83ebf

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

Improvements.
h3rald h3rald@h3rald.com
Tue, 03 Dec 2024 21:56:30 +0000
commit

e3f310213f3b315fff0a2ae8e0ddac17fcb83ebf

parent

5d3552ae62794758dcfdd58e7f7824e151714f6a

4 files changed, 10 insertions(+), 5 deletions(-)

jump to
M MakefileMakefile

@@ -5,11 +5,14 @@

hex: hex.c $(CC) $(CFLAGS) $(LDFLAGS) $< -o hex -wasm: hex.c +web/assets/hex.wasm: hex.c emcc -O2 -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js ape: hex.c cosmocc $(CFLAGS) $(LDFLAGS) $< -o hex + +.PHONY: wasm +wasm: web/assets/hex.wasm .PHONY: clean clean:
M web.hexweb.hex

@@ -18,7 +18,9 @@ (

"fn_content" store fn_content ".html" "" replace "id_content" store d_contents "/" fn_content cat cat read "content" store - t_page read "{{content}}" content replace "new_content" store + t_page read "{{content}}" content replace + "{{title}}" id_content replace + "new_content" store (fn_content "home.html" ==) (d_out "/index.html" cat "dst_file" store) (
M web/templates/page.htmlweb/templates/page.html

@@ -2,7 +2,7 @@ <!DOCTYPE html>

<html lang="en"> <head> - <title>hex programming language</title> + <title>hex programming language - {{title}}</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=0"> <meta name="author" content="Fabio Cevasco">

@@ -22,8 +22,8 @@ *

</pre> </header> <nav> - <a href="/get">Get Started</a> | - <a href="/manual">Manual</a> | + <a href="/get">Get</a> | + <a href="/learn">Learn</a> | <a href="/play">Play</a> | <a href="/changelog">Changelog</a> | <a href="/about">About</a>