Skip to content

Conversation

@jserv
Copy link
Collaborator

@jserv jserv commented Aug 15, 2025

  • Add support for expressions starting with '*' in read_body_statement
  • Handle pointer dereference assignment statements like "*ptr = value"
  • Generate OP_write instruction for pointer assignments

Summary by Bito

This pull request enhances the parser to support pointer dereference assignments, allowing expressions that start with '*' to be correctly parsed. It introduces new logic for handling pointer assignments and generates the appropriate OP_write instruction. Comprehensive test cases have been added to ensure correctness across various scenarios.

- Add support for expressions starting with '*' in read_body_statement
- Handle pointer dereference assignment statements like "*ptr = value"
- Generate OP_write instruction for pointer assignments
@jserv jserv merged commit b5e0cbc into master Aug 15, 2025
12 checks passed
@jserv jserv deleted the fix-pointer-dereference branch August 15, 2025 20:10
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.

2 participants