Skip to content

docs: replace compiler-internal macros with self-hosted prelude model - #153

Merged
thsfranca merged 1 commit into
mainfrom
docs/self-hosted-prelude-macros
Mar 21, 2026
Merged

docs: replace compiler-internal macros with self-hosted prelude model#153
thsfranca merged 1 commit into
mainfrom
docs/self-hosted-prelude-macros

Conversation

@thsfranca

Copy link
Copy Markdown
Owner

Summary

  • Replace all "compiler-internal macros" references with self-hosted prelude model across language-design.md, compiler-architecture.md, and mvp.md
  • Add a "Prelude — Self-Hosted Core Macros" section to §4.5 describing how cond, and, or are defined with defmacro in an embedded prelude
  • Update design decisions §8, §9, §11 to reflect self-hosted architecture
  • Add rejected alternative (hardcoded Rust implementations) to §11

Test plan

  • cargo test passes (546 tests, docs-only change)
  • cargo clippy clean
  • No remaining "compiler-internal" references in docs/

cond, and, and or are defined with defmacro in a prelude module
embedded in the compiler binary, not hardcoded in Rust. Update
language-design.md, compiler-architecture.md, and mvp.md to reflect
this architecture consistently.
@thsfranca
thsfranca enabled auto-merge (squash) March 21, 2026 23:13
@thsfranca
thsfranca merged commit 6a045af into main Mar 21, 2026
2 checks passed
@thsfranca
thsfranca deleted the docs/self-hosted-prelude-macros branch March 21, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant