chore: rebrand Clojure/Nim → Bara Lang across codebase

- Bulk replace Clojure/Nim → Bara Lang in src/, lib/, examples/, benchmarks/,
  experiments/, books/, LICENSE, cljnim.nimble, PLAN.md, AI_AGENT.md
- Rename book chapters: 05-clojure-nim.md → 05-bara-lang.md (en + bg)
- Update all chapter index links and anchors
- Replace project-specific 'Clojure' references with 'Bara Lang' in
  experiments/, src/ai_assist.nim, src/tui_screens.nim, src/emitter.nim,
  src/reader.nim, src/types.nim, lib/cljnim_runtime*.nim
- Keep legitimate JVM Clojure/ClojureScript/Clojure CLR references intact
This commit is contained in:
2026-05-11 12:23:29 +03:00
parent 606605c95c
commit 79cd9c08d8
41 changed files with 128 additions and 128 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
# Clojure/Nim → JavaScript
# Bara Lang → JavaScript
Compile Clojure code to JavaScript via Nim's JS backend.
Compile Bara Lang code to JavaScript via Nim's JS backend.
## Why?
- **No JVM** — Clojure in the browser without 50MB runtime
- **No JavaScript** — write Clojure, get JS
- **No JVM** — Bara Lang in the browser without 50MB runtime
- **No JavaScript** — write Bara Lang, get JS
- **Smaller than ClojureScript** — no Google Closure compiler needed
## Quick Start
+1 -1
View File
@@ -1,4 +1,4 @@
# Generated by Clojure/Nim
# Generated by Bara Lang
import cljnim_runtime_js
proc square*(x: CljVal): CljVal =
+2 -2
View File
@@ -1,9 +1,9 @@
# JS-friendly wrappers around Clojure-generated code
# JS-friendly wrappers around Bara Lang-generated code
# These expose plain JS types (number, string) instead of CljVal
import cljnim_runtime_js
# Import the generated Clojure functions
# Import the generated Bara Lang functions
include build/math
proc jsSquare*(x: int): int {.exportc.} =
+3 -3
View File
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Clojure/Nim → JS Demo</title>
<title>Bara Lang → JS Demo</title>
<style>
body { font-family: monospace; max-width: 800px; margin: 40px auto; padding: 20px; background: #1a1a2e; color: #eee; }
h1 { color: #e94560; }
@@ -14,8 +14,8 @@
</style>
</head>
<body>
<h1>🔥 Clojure/Nim → JavaScript</h1>
<p>Clojure code compiled to Nim, then to JavaScript. Running in your browser.</p>
<h1>🔥 Bara Lang → JavaScript</h1>
<p>Bara Lang code compiled to Nim, then to JavaScript. Running in your browser.</p>
<div class="result">
<div class="label">square(7)</div>