Skip to content

feat(ring-0): frozen stage-0 + first green parse [SEED-0]#3

Merged
gHashTag merged 1 commit intomasterfrom
ring/0-const-literal
Apr 4, 2026
Merged

feat(ring-0): frozen stage-0 + first green parse [SEED-0]#3
gHashTag merged 1 commit intomasterfrom
ring/0-const-literal

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

@gHashTag gHashTag commented Apr 4, 2026

Closes #2

Ring-0 of the oak. Ghuloum step 1+2.

Changes

  • Fixed 10 bugs in bootstrap/src/compiler.rs:
    • Bug 1: lexer.tokenize() consumed all tokens before Parser could use them
    • Bug 2: No // line comment support
    • Bug 3: No string literal "..." support
    • Bug 4: No module statement parsing (with hyphenated names)
    • Bug 5: No use/using statement handling
    • Bug 6: Hex literals missing a-f/A-F digit support
    • Bug 7: Function/test/invariant/bench bodies crash on complex expressions (now brace-skip)
    • Bug 8: const = enum(...), const = struct { }, array types not handled
    • Bug 9: Semicolon at column 1 incorrectly treated as comment
    • Bug 10: Negative numbers like -1 not combined in const parsing
  • Fixed main.rs async main to respect server feature flag
  • t27c parse tests/ring0_trivial.t27 → SUCCESS
  • t27c parse specs/base/types.t27 → SUCCESS
  • Created stage0/FROZEN_HASH
  • Created docs/SEED-RINGS.md

phi^2 + 1/phi^2 = 3 | TRINITY

- 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
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.

[SEED-0] Ring-0: Frozen stage-0 + first green parse (Ghuloum step 1)

1 participant