feat(ring-0): frozen stage-0 + first green parse [SEED-0]#3
Merged
Conversation
- Fix lexer: // comments, hex/binary/string literals, semicolons - Fix parser: module, use, const forms, fn headers, brace-skip bodies - Fix critical bug: lexer.tokenize() exhaustion before Parser - Create tests/ring0_trivial.t27 - Create stage0/FROZEN_HASH - Create docs/SEED-RINGS.md Closes #2
This was referenced Apr 4, 2026
5 tasks
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.
Closes #2
Ring-0 of the oak. Ghuloum step 1+2.
Changes
bootstrap/src/compiler.rs:lexer.tokenize()consumed all tokens before Parser could use them//line comment support"..."supportmodulestatement parsing (with hyphenated names)use/usingstatement handlingconst = enum(...),const = struct { }, array types not handled-1not combined in const parsingmain.rsasync main to respectserverfeature flagt27c parse tests/ring0_trivial.t27→ SUCCESSt27c parse specs/base/types.t27→ SUCCESSstage0/FROZEN_HASHdocs/SEED-RINGS.mdphi^2 + 1/phi^2 = 3 | TRINITY