Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Compound Assignment Operators

Compare
Choose a tag to compare
@SahilK-027 SahilK-027 released this 29 Sep 14:17
· 15 commits to main since this release
fe625e9

Compound Assignment Operators

We are excited to announce the release of AssembleScript v2.0.4, which introduces support for compound assignment operators! These operators allow you to perform arithmetic operations and assignments in a single step, enhancing code efficiency and readability.

Key Features

  • Compound Assignment Operators: You can now use compound assignment operators like +=, -=. *=, /=, %=, and ^= in your AssembleScript code.

What's New

This release includes the following updates:

  • Parser Enhancements: We've updated the parser to recognize compound assignment expressions, making it easier to work with complex calculations.

  • Evaluation Logic: Implementation of evaluation logic for each compound assignment operator ensures that your code performs as expected.

  • Lexer Tokenization: The lexer has been enhanced to tokenize compound assignment operators, making them an integral part of your code syntax.

  • Comprehensive Testing: We've added extensive test cases to ensure the correctness and reliability of this new functionality, guaranteeing a seamless development experience.