Repository navigation
9 glossary
Source: https://deepwiki.com/PonvasanthPon/TransCompilator/9-glossary
Relevant source files
The following files were used as context for generating this wiki page:
- README.md
- crates/tc-cli/tests/blind_llm_regressions.rs
- crates/tc-lexicon/src/generated/wordnet_concepts.rs
- crates/tc-lexicon/src/lib.rs
- crates/tc-lsp/tests/lsp_protocol_tests.rs
- crates/tc-semantics/src/lib.rs
- docs/CORE_LIMITS.md
- docs/COVERAGE_AUDIT.md
- docs/TC_ENGLISH_SPEC.md
- goldmines/PROVENANCE.md
- goldmines/tools/harvest_wordnet_r1.py
This page defines the specialized architectural terms, front-end semantic concepts, mid-end structures, linguistic evidence pipelines, and verification mechanisms used across the tc_r1 codebase. Each entry details its role, implementation location, and data-flow characteristics.
Sources: README.md:1-165
The following diagram bridges Natural Language Space to Code Entity Space, illustrating how raw source files flow through segmentation, intent classification, and clause graph decomposition into compiler internal structures.
graph TD
NatLang["NaturalLanguageSentence"] --> Segment["tc_syntax::segment_source"]
Segment --> RawDoc["RawDocument"]
RawDoc --> IntentGate["tc_semantics::intent::classify_sentence"]
IntentGate --> Verdict{"IntentVerdict"}
Verdict -->|"EXEC"| ClauseGraph["tc_semantics::clause_graph::ClauseGraph"]
Verdict -->|"COMMENT_OMITTED"| Omit["NarrativeDiscard"]
Verdict -->|"UNSUPPORTED"| Diag["SemanticError"]
ClauseGraph --> Lower["tc_semantics::lower"]
Lower --> TypedAST["tc_typeck::Program"]
Sources: crates/tc-semantics/src/lib.rs:36-49, README.md:21-36
This diagram maps natural language lexical items to the provenance-backed zero-ML lexicon tables, semantic frames, and Core-7 instruction lowering.
graph TD
WNSource["OpenEnglishWordNet2025"] --> Harvest["goldmines/tools/harvest_wordnet_r1.py"]
VNSource["CUBoulderVerbNet3.4"] --> HarvestVN["goldmines/tools/harvest_verbnet_r1.py"]
Harvest --> GenWN["tc_lexicon::generated::wordnet_concepts"]
HarvestVN --> GenVNFrame["tc_lexicon::generated::verbnet_frames"]
GenWN --> LexEngine["tc_lexicon::VerbResolution"]
GenVNFrame --> LexEngine
LexEngine --> SemanticFrame["tc_semantics::frame::SemanticFrame"]
SemanticFrame --> LowerEngine["tc_semantics::lower"]
LowerEngine --> CoreIR["tc_ir::Module"]
Sources: goldmines/PROVENANCE.md:1-122, crates/tc-lexicon/src/lib.rs:1-258
The shared middle-end intermediate representation of tc_r1 (crates/tc-ir/). It consists of seven irreducible primitives: lexical locals/assignment/block scoping, conditional/loop control, function calls/returns, address/place computation, fixed-size memory copies, arithmetic/bitwise/comparison operations, and raw Linux syscalls/static ELF64 emission.
Sources: README.md:16-19, docs/TC_ENGLISH_SPEC.md:13-34
A strict three-way sentence classifier implemented in tc_semantics::intent that inspects every parsed English sentence and assigns an execution verdict prior to semantic lowering.
Sources: README.md:27-30, crates/tc-semantics/src/lib.rs:6-9
The three verdicts returned by the intent gate:
-
EXEC: Computational statements lowered into the typed AST and Core-7 IR. -
COMMENT_OMITTED: Non-computational narrative prose, greetings, or conversational fillers handled as zero-effect comments. -
UNSUPPORTED: Valid English syntactic structures that lack computational lowering semantics, producing a clean compiler diagnostic rather than silent misinterpretation. Sources: docs/TC_ENGLISH_SPEC.md:167-174, docs/CORE_LIMITS.md:1-20
The linguistic resolution mechanism handling pronouns and referents (it, its <field>, the <type>, the <type> <name>, plurals like their ...) across statements using a DRS-style discourse referent stack.
Sources: README.md:155-162, docs/TC_ENGLISH_SPEC.md:35-41
The structural representation in tc_semantics::clause_graph that decomposes complex English sentence linkages into normalized clauses, isolating subjects, main verbs, direct objects, and prepositional modifiers.
Sources: crates/tc-semantics/src/lib.rs:10, README.md:27-31
An intermediate semantic structure (tc_semantics::frame::SemanticFrame) classifying actions into computational concepts such as Emit, Assign, Transfer, and Swap, bound with prepositional place specifications (Source, Destination, Theme, Recipient, Extent, Instrument, Location).
Sources: README.md:155-162, goldmines/PROVENANCE.md:23-61
Paragraph-level and block-level range management (tc_semantics::discourse_scope) tracking variable scopes, loop introductions, sequence generations, pass filters, and check-whether conditional sentences.
Sources: crates/tc-semantics/src/lib.rs:12-13, README.md:27-31
A deterministic diagnostic feature (crates/tc-semantics/src/paraphrase.rs) that reconstructs canonical English text from lowered statements, validating syntactic invariance and semantic consistency.
Sources: README.md:143-154, crates/tc-semantics/src/lib.rs:19-42
The native target format emitted by tc-codegen-x86: a static x86-64 ELF executable generated directly without linking to libc or any external runtime library.
Sources: README.md:31-36, docs/TC_ENGLISH_SPEC.md:13-18
The read-only upstream data repository directory (goldmines/) containing extraction scripts (goldmines/tools/) for Open English WordNet and CU Boulder VerbNet used to generate deterministic Rust lexicon tables without runtime network access.
Sources: goldmines/PROVENANCE.md:1-122, goldmines/tools/harvest_wordnet_r1.py:1-60
A provenance-carrying struct (VerbNetFrame) defined in tc-lexicon holding a verb lemma, preposition binding, thematic role (PrepRole), semantic predicate (VerbPredicate), and VerbNet class ID.
Sources: crates/tc-lexicon/src/lib.rs:198-232, goldmines/PROVENANCE.md:81-99
A hand-audited list of 279 English function words (CLOSED_CLASS) in tc-lexicon::closed_class representing prepositions, conjunctions, determiners, auxiliaries, pronouns, negations, discourse fillers, and control anchors.
Sources: goldmines/PROVENANCE.md:100-113, crates/tc-lexicon/src/lib.rs:142-161
Demand-driven generic instantiation performed by tc-typeck where generic functions and aggregate types are instantiated with concrete types during type checking and IR lowering.
Sources: README.md:30-31
An execution verification procedure (tc_editor::runner::run_elf_with_parity) requiring identical exit status, standard output, standard error, and filesystem effects between the reference interpreter execution path and the native zero-libc ELF execution path.
Sources: README.md:31-36, crates/tc-cli/tests/blind_llm_regressions.rs:4-7
Rigorous verification suites (battletest_core/) covering blind-LLM regressions, core/convergence/Phase 5 behaviors, natural-English discourse synthesis, and orthogonality matrices.
Sources: README.md:143-152, docs/CORE_LIMITS.md:1-12
User-defined declarative signatures using Phrase: "<literal words and <params>>" within function definitions that map natural language surface patterns to typed parameters and function bodies.
Sources: README.md:155-162, docs/TC_ENGLISH_SPEC.md:133-150
The zero-ML lexical evidence harvesting workflow executed by Python scripts in goldmines/tools/ over WordNet and VerbNet sources, producing provenance-backed Rust lookup tables in tc-lexicon.
Sources: goldmines/PROVENANCE.md:1-122, goldmines/tools/harvest_wordnet_r1.py:1-123
The TransCompilator Project