Skip to content

Enhance AST Handling with Dynamic Body Processing and Token Iteration Improvements#45

Merged
LunaStev merged 21 commits intomasterfrom
develop
Jan 14, 2025
Merged

Enhance AST Handling with Dynamic Body Processing and Token Iteration Improvements#45
LunaStev merged 21 commits intomasterfrom
develop

Conversation

@LunaStev
Copy link
Member

  • Merged the latest changes from the develop branch into master, including:
    • Enhancements to body handling and token iteration.
    • Added functionality for dynamic body handling via HashMap and body variable functions.
    • Improvements in AST conversion and token processing with new features like peekable token iterators, while-let loops, and match statements.
    • Introduced a new StatementNode to improve AST structure.
    • Added extract_body for easier body extraction and handling.
    • Compulsory grammar rules enforced for AST generation and body content processing.

LunaStev and others added 21 commits January 14, 2025 13:43
- Wrapped tokens.iter() with .peekable() to enable lookahead capability
- Prepares for logic that requires peeking at the next token during iteration
- Added a `while let` loop to iterate over tokens
- Processes tokens one by one with `iter.next()`
- Prepares for handling token processing logic inside the loop
- Introduced a `match` statement inside the `while let` loop
- Prepares for handling different token types based on `token.token_type`
- Framework set up for implementing token-specific logic
- Introduced a `match` statement inside the `while let` loop
- Prepares for handling different token types based on `token.token_type`
- Framework set up for implementing token-specific logic
Enhance Body Handling and Token Iteration
@LunaStev LunaStev self-assigned this Jan 14, 2025
@LunaStev LunaStev merged commit 3797795 into master Jan 14, 2025
1 check passed
@LunaStev LunaStev added this to Wave Aug 28, 2025
@LunaStev LunaStev moved this to Done in Wave Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant