Commit Graph

1 Commits

Author SHA1 Message Date
Bob Nystrom
d3cffd521d feat: add parentheses grouping support in expression parser
Implement parenthesized expression parsing in the primary() function by matching TOKEN_LEFT_PAREN, recursively calling expression(), and consuming TOKEN_RIGHT_PAREN. Add grammar test cases in test/grammar.wren verifying correct operator precedence with parentheses, including nested grouping expressions.
2013-11-01 04:49:15 +00:00