feat: add fullscreen TUI and project updates

- New TUI screens: Main Menu, Compile, Run, REPL, AI Generator, AI Settings, Help
- AI configuration persisted in ~/.config/cljnim/config.json
- Added illwill dependency for terminal UI
- Updated experiments, examples, docs, and core modules
This commit is contained in:
2026-05-09 01:53:23 +03:00
parent 2bc64eca22
commit ba0b300917
42 changed files with 3042 additions and 153 deletions
+14
View File
@@ -0,0 +1,14 @@
# WASM-friendly wrappers around Clojure-generated code
# Uses Emscripten FFI: cint → JS number, cstring → JS string
import cljnim_runtime
include build/math
proc wasmSquare*(x: cint): cint {.exportc.} =
let r = square(cljInt(x.int64))
return r.intVal.cint
proc wasmFactorial*(n: cint): cint {.exportc.} =
let r = factorial(cljInt(n.int64))
return r.intVal.cint