Skip to content

Parser architecture improvement #47

@yhk1038

Description

@yhk1038

Improve the current hybrid parser (regex + parser combinator) to a unified token-based parser with TypeSlot concept.

Goals

  • Better error messages with accurate location tracking
  • Stronger gradual typing support
  • Parsing performance improvement (remove duplicate type parsing)
  • Easier extensibility for new type syntax

Key Concepts

  • Two Tree Structure: Code Node tree + Type tree
  • TypeSlot: Explicit tracking of "positions where types should appear"
  • Single Type Processor: All type parsing/validation through one entry point
  • Self-validation: Each node validates itself

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions