Commit Graph

3 Commits

Author SHA1 Message Date
2cc31a1381 docs: document check-parens limitation with multi-block forms
Some literate files split a single form across multiple blocks.
check-parens checks per-block, so these produce false positives.
Recommend check-tangle as an alternative for those files.
2026-05-13 13:17:08 -04:00
4c55f135fb check-parens: use SBCL reader for 100% accurate paren validation
Replace Python regex-based string/comment stripper with SBCL's actual
reader. For each lisp block, feeds the code to read-from-string in a
loop (reading all forms). Correctly classifies: package errors (not a
paren problem), reader errors (extra/missing closes), EOF (missing
closes Handles all Common Lisp reader edge cases: character literals
(#\( #\) #\;), block comments, string escaping
2026-05-13 12:17:02 -04:00
fc7bc2fef8 check-parens: standalone paren balance checker for lisp blocks in org files
Scans #+begin_src lisp ... #+end_src blocks, strips strings and
comments, reports unbalanced parens per-block with line numbers.
Detects unterminated blocks (no matching #+end_src).

Zero dependencies (stdlib Python). Called from AGENTS.md step:
  projects/check-parens/check-parens org/file.org
2026-05-13 12:02:52 -04:00