Skip to content

fix: allow nested function calls and refactor parser tests#10

Merged
blazejOz merged 4 commits into
mainfrom
fix/7-nested-call-expressions
Mar 25, 2026
Merged

fix: allow nested function calls and refactor parser tests#10
blazejOz merged 4 commits into
mainfrom
fix/7-nested-call-expressions

Conversation

@blazejOz

Copy link
Copy Markdown
Owner

Summary

Refactored parseCallExpr to allow function calls to be used as nested expressions (resolving the "greedy semicolon" bug)
Implemented structural AST testing using dynamic casting

Changes

  • Fixed semicolon enforcement in the Parser.
  • Added AST getters for node observation.
  • Updated test suite to use structural verification instead of string matching.

Closes #7

@blazejOz blazejOz merged commit bf879ac into main Mar 25, 2026
1 check passed
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.

[BUG] Parser incorrectly requires semicolons for nested expressions

1 participant