How ponvasanthpon/transcompilator works
TransCompilator compiles structured English into deterministic Core-7 IR and then to static x86_64 ELF64 executables; the reference interpreter runs the same IR. The graph follows the documented source-to-result stages and preserves the CLI, editor, and language-server surfaces. Semantic internals are grouped by role; their exact implementation paths come from the tree, while relationships not shown in excerpts are limited to README-documented links. The editor and LSP are documented as using compiler crates without shelling out.
Main entry points: mod.rs Semantic Lowering · main.rs tc CLI · verify.rs IR Verification · clause.rs Clause Syntax
Components 23
English Front End
- Paragraph Segmentation
crates/tc-syntax/src/segment.rs - Clause Syntax
crates/tc-syntax/src/clause.rs - English Lexicon
crates/tc-lexicon/src/lib.rs
Semantic Analysis
- Intent Gate
crates/tc-semantics/src/intent.rs - Discourse Resolution
crates/tc-semantics/src/discourse.rs - Clause Graph Analysis
crates/tc-semantics/src/clause_graph.rs - Semantic Lowering
crates/tc-semantics/src/lower/mod.rs - Expression Parsing
crates/tc-semantics/src/expr.rs - Quantifier Lowering
crates/tc-semantics/src/quantifier.rs
Typed Core
- Typed AST
crates/tc-typeck/src/ast.rs - Module Resolution
crates/tc-typeck/src/resolve.rs - Type Checking
crates/tc-typeck/src/check.rs - Core-7 IR
crates/tc-ir/src/ir.rs - IR Verification
crates/tc-ir/src/verify.rs
Execution Targets
- x86 Assembly Emitter
crates/tc-codegen-x86/src/emit.rs - Static ELF Linker
crates/tc-codegen-x86/src/link.rs - Reference Interpreter
crates/tc-ir/src/interp.rs - ELF64 Executable
Developer Tools
- tc CLI
crates/tc-cli/src/main.rs - Terminal Editor
crates/tc-editor/src/app.rs - Language Server
crates/tc-lsp/src/handlers.rs - Zed Integration
editors/zed/tc-eng-extension/src/lib.rs
Other components
- Program Author
Connections 27
- Program Author → tc CLI: invokes
README.md - tc CLI → Paragraph Segmentation: submits source
README.md - Paragraph Segmentation → Clause Syntax: segments clauses
README.md - Clause Syntax → Intent Gate: feeds analysis
README.md - English Lexicon → Clause Syntax: supports parsing
README.md - English Lexicon → Intent Gate: supports classification
README.md - Intent Gate → Discourse Resolution: classifies intent
README.md - Discourse Resolution → Clause Graph Analysis: resolves references
README.md - Clause Graph Analysis → Semantic Lowering: informs lowering
README.md - Semantic Lowering → Expression Parsing: parses expressions
crates/tc-semantics/src/lower/mod.rs - Semantic Lowering → Quantifier Lowering: lowers quantifiers
README.md - Semantic Lowering → Typed AST: produces typed AST
README.md - Typed AST → Module Resolution: resolves modules
README.md - Module Resolution → Type Checking: provides resolved program
crates/tc-typeck/src/check.rs - Type Checking → Core-7 IR: lowers verified program
README.md - Core-7 IR → IR Verification: validates
README.md - IR Verification → x86 Assembly Emitter: feeds code generation
README.md - x86 Assembly Emitter → Static ELF Linker: emits assembly
README.md - Static ELF Linker → ELF64 Executable: links executable
README.md - IR Verification → Reference Interpreter: executes IR
README.md - tc CLI → Reference Interpreter: runs program
README.md - tc CLI → Static ELF Linker: builds target
README.md - Program Author → Terminal Editor: edits source
README.md - Terminal Editor → Semantic Lowering: uses compiler crates
README.md - Program Author → Language Server: requests analysis
README.md - Language Server → Semantic Lowering: uses compiler crates
README.md - Zed Integration → Language Server: integrates language server
README.md