Skip to content

build: prepare Stage 2 foundation #34#42

Merged
edloidas merged 2 commits intomasterfrom
issue-34
Mar 29, 2026
Merged

build: prepare Stage 2 foundation #34#42
edloidas merged 2 commits intomasterfrom
issue-34

Conversation

@edloidas
Copy link
Copy Markdown
Owner

Shared infrastructure for all Stage 2 features. Prerequisite for #35-#41.

  • Reorganized TokenType enum with 31 tokens in semantic groups (all Stage 2 IDs allocated)
  • Rewrote scanIdentifier() to full-accumulation with keyword lookup table
  • Added comparison, explode, and comma operator scanning
  • Defined canonical ComparePoint type with value: ASTNode
  • Added parseComparePoint() and isComparePointAhead() parser utilities
  • Added STAGE2.md design document with consilium review decisions

Closes #34

Drafted with AI assistance

edloidas and others added 2 commits March 30, 2026 01:27
Changed issue body headers from h5 to h4 for short issues (1–2 headers)
and h3 when there are 3 or more.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reorganized `TokenType` enum with all 31 Stage 2 token IDs allocated upfront in semantic groups.
Rewrote `scanIdentifier()` to full-accumulation approach with keyword lookup table, resolving the `d`-in-`round` problem.
Added comparison (`>`, `>=`, `<`, `<=`, `=`), explode (`!`, `!!`, `!p`), and comma (`,`) scanning to the operator switch.
Defined canonical `ComparePoint` type in `types.ts` with `value: ASTNode` for computed thresholds.
Added `parseComparePoint()` and `isComparePointAhead()` parser utilities for Stage 2 modifier parsers.
Added `STAGE2.md` design document with all cross-cutting decisions from consilium review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@edloidas edloidas self-assigned this Mar 29, 2026
@edloidas edloidas merged commit 230591e into master Mar 29, 2026
10 checks passed
@edloidas edloidas deleted the issue-34 branch March 29, 2026 23:31
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.

build: prepare Stage 2 foundation

1 participant