Repository navigation
Phase 1: language v2 (spec, lexer, parser, canons, validator) - #3
Merged
Merged
Conversation
- docs/spec/language.md: EBNF grammar for arguments, axioms, definitions, nodes, objections/replies, natural-deduction proofs and formulas (propositional, first-order, modal, property variables and lambda) - Lexer with code-point columns; diagnostics rendered as file:line:col with a caret line - Recursive-descent parser producing a typed AST; formulas parsed to an immutable expression tree with a canonical ASCII/Unicode printer - Canon registry: Protestant (66), Catholic (73), Orthodox (77) books with chapter counts; Quran surah/ayah bounds - Validator v2: name kinds, node-kind rules, cycles, grounding and relevance warnings, scripture resolution - Mermaid exporter v2 with axioms, formulas, objections and replies - CLI: theosc check / theosc export --format mermaid - Examples ported; resurrection now states its inference-to-the-best- explanation premise explicitly and carries an objection and reply - Golden tests (THEOS_UPDATE_GOLDEN=1 to refresh); Clang CI uses libc++ - v1 binary format removed (replaced by .theos v2 in Phase 2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019WEmxyo9CRKSbjbEdCuJTG
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Windows CI checked the golden .theo files out with CRLF; the renderer copied the trailing \r into the excerpt line, so output differed from the LF golden files. Strip it in the renderer (CRLF sources are normal on Windows) and pin text files to LF with .gitattributes so golden comparisons are byte-identical on every platform; .theos is binary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019WEmxyo9CRKSbjbEdCuJTG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2. Implements Phase 1 of
ROADMAP.md.docs/spec/language.md: EBNF for the whole language: arguments, imports, axioms (scripture/source/principle), definitions, nodes, objections/replies, Fitch-style proofs, and formulas covering propositional, first-order, S5 modal, property variables and λ (needed for Gödel).file:line:colwith a caret line.check/export --format mermaid, golden tests (THEOS_UPDATE_GOLDEN=1).Changes from the plan (recorded in the roadmap):
std::expectedfrom Clang 18 (reproduced locally).Local: GCC 13 and Clang 18 + libc++, 32 test cases pass.
Generated by Claude Code