Skip to content

1 overview

TransCompilator edited this page Nov 26, 2026 · 1 revision

1 Overview

Source: https://deepwiki.com/PonvasanthPon/TransCompilator/1-overview

Overview

Relevant source files

The following files were used as context for generating this wiki page:

TransCompilator (tc_r1) is a deterministic, zero-ML compiler family whose source language is structured human language [README.md:1-25]. Rather than relying on probabilistic models, embeddings, or heuristic guesses, tc_r1 recovers computational intent through deterministic grammar and lexical analysis, lowers that intent into a typed intermediate representation (Core-7 IR), and emits static native executables or executes them via a reference interpreter [README.md:21-36].

The current implementation (0.1.0-alpha-preview) uses English as its source language, an acyclic nine-crate std-only Rust workspace with zero external crates (Cargo.lock), zero network access, and zero machine learning dependencies [README.md:21-26, AGENTS.md:8-13].

graph TD
    subgraph "Workspace Crates"
    Cli["tc-cli crates/tc-cli/src/main.rs"]
    Lsp["tc-lsp crates/tc-lsp/src/"]
    Editor["tc-editor crates/tc-editor/src/"]
    Semantics["tc-semantics crates/tc-semantics/src/lib.rs"]
    Typeck["tc-typeck crates/tc-typeck/src/lib.rs"]
    Syntax["tc-syntax crates/tc-syntax/src/lib.rs"]
    Lexicon["tc-lexicon crates/tc-lexicon/src/lib.rs"]
    Ir["tc-ir crates/tc-ir/src/lib.rs"]
    Codegen["tc-codegen-x86 crates/tc-codegen-x86/src/lib.rs"]
    end
    Cli --> Semantics
    Cli --> Codegen
    Cli --> Ir
    Lsp --> Semantics
    Editor --> Codegen
    Syntax --> Lexicon
    Semantics --> Syntax
    Semantics --> Lexicon
    Semantics --> Typeck
    Typeck --> Ir
    Codegen --> Ir
Loading

Sources: [Cargo.toml:3-13], [AGENTS.md:75-87], [README.md:21-36]


Compilation Pipeline Topology

Structured English source files (.eng) flow through a strict, acyclic pipeline from raw text segmentation to lexical verification, intent gating, type checking, Core-7 IR lowering, and finally execution or static ELF64 code emission [README.md:27-35, AGENTS.md:75-114].

graph LR
    Source["SourceFile crates/tc-semantics/src/lib.rs"] --> Segment["tc_syntax::segment_source crates/tc-syntax/src/lib.rs"]
    Segment --> LinkGrammar["lg_ffi crates/tc-syntax/src/lg_ffi.rs"]
    LinkGrammar --> IntentGate["compile_english_to_ir crates/tc-semantics/src/lib.rs"]
    IntentGate --> TypeCheck["tc_typeck crates/tc-typeck/src/lib.rs"]
    TypeCheck --> CoreIR["Module crates/tc-ir/src/lib.rs"]
    CoreIR --> Interp["interpret crates/tc-ir/src/lib.rs"]
    CoreIR --> Codegen["emit_elf crates/tc-codegen-x86/src/lib.rs"]
Loading

Sources: [README.md:27-36], [AGENTS.md:75-114], [crates/tc-cli/src/main.rs:128-206]


Child Pages

For detailed specifications, implementation internals, and contributor workflows, consult the following child pages:

  • Getting Started and Build System — Cargo workspace layout (Cargo.toml), Makefile targets (Makefile), offline/zero-dependency build constraints, build.rs scripts, CI workflow, and .gitignore rules.
  • Compilation Pipeline End-to-End — Detailed execution trace of how an .eng file flows through syntax analysis (tc-syntax), semantic analysis (tc-semantics), type checking (tc-typeck), Core-7 IR (tc-ir), and code generation or interpretation, including module and import resolution ([crates/tc-cli/src/main.rs:128-185]()).
  • Project Conventions and Contributing — Guidelines across CONTRIBUTING.md, AGENTS.md, SKILL.md, MANIFEST.md, and CHANGELOG.md, emphasizing determinism rules, the no-network/no-ML invariants, and review gates.

Sources: [Cargo.toml:1-13], [Makefile:1-68], [CONTRIBUTING.md:1-192], [AGENTS.md:1-165]


Clone this wiki locally