Add AI-first REPL with JSON mode

This commit is contained in:
2026-05-08 16:51:05 +03:00
parent 87d6028487
commit 5971c062d1
5 changed files with 595 additions and 363 deletions
+2 -2
View File
@@ -940,9 +940,9 @@ proc emitProgram*(forms: seq[CljVal]): string =
stripped.startsWith("try:") or stripped.startsWith("var "):
mainForms.add(code)
elif i == forms.len - 1:
mainForms.add(indentStr(2) & "echo " & stripped)
mainForms.add(indentStr(2) & "echo cljRepr(" & stripped & ")")
else:
mainForms.add(indentStr(2) & "discard " & stripped)
mainForms.add(indentStr(2) & "discard cljRepr(" & stripped & ")")
var lines = headerLines
# Add collected Nim imports