Skip to content

Conversation

@ErdemT09
Copy link
Collaborator

No description provided.

@ErdemT09 ErdemT09 marked this pull request as ready for review June 17, 2025 14:21
@ErdemT09 ErdemT09 changed the title Variable Nesting Class and Variable Parsing and Interpreting Jun 17, 2025
ErdemT09 added 5 commits June 25, 2025 17:42
Enhanced the parser to handle member access chains and assignments, allowing statements like 'h.age = h.age + 1;' and member function calls. Updated test file to include a member assignment example.
Updated FunctionCallStatementNode to support both simple and member access function calls by adding an expression field. Modified the parser to preserve the full expression for member access function calls, and updated the interpreter to handle both cases in visitFunctionCallStatement. This enables correct handling of statements like h.doSomething().
Added logic to handle assignments to both simple variables and member access chains in the interpreter. Refactored class declaration to properly set properties and functions on new objects. Removed unused LValue class and related commented code.
@LukaDeka LukaDeka merged commit 8fb46d2 into main Jul 1, 2025
0 of 2 checks passed
@LukaDeka LukaDeka deleted the Variable-Nesting branch July 1, 2025 07: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.

5 participants