You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Add support for assignment operators (`+=`, `-=`, etc.) in BAML,
updating compiler, parser, and VM with tests.
>
> - **Behavior**:
> - Adds support for assignment operators (`+=`, `-=`, `*=`, `/=`, `%=`)
in `codegen.rs` by introducing `AssignOp` handling in
`compile_statement()`.
> - Updates `typecheck_statement()` in `typecheck.rs` to handle
`AssignOp` for type checking.
> - Extends `Stmt` enum in `stmt.rs` to include `AssignOpStmt`.
> - **Parser**:
> - Updates `parse_expr.rs` to parse `AssignOpStmt`.
> - Modifies `datamodel.pest` to include grammar rules for assignment
operators.
> - **HIR**:
> - Adds `AssignOp` to `Statement` enum in `mod.rs`.
> - Implements `AssignOp` handling in `lowering.rs` for AST to HIR
conversion.
> - **Tests**:
> - Adds tests in `vm.rs` to verify execution of assignment operators.
> - Includes tests for each operator (`+=`, `-=`, `*=`, `/=`, `%=`) to
ensure correct VM execution.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 08330af. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
0 commit comments