DulLabs / bhai-lang

A toy programming language written in Typescript
https://bhailang.js.org/
MIT License
3.97k stars 501 forks source link

refactor: Refactor AssignmentExpression class #290

Open haris741 opened 6 months ago

haris741 commented 6 months ago

What does this PR do?

Description: This commit refactors the AssignmentExpression class to enhance its readability and maintainability. The primary improvements include organizing the logic into separate methods, resulting in better code organization. Additionally, the code now incorporates checks for null values before performing assignments, contributing to improved error handling during runtime.

What packages have been affected by this PR?

Types of changes

What types of changes does your code introduce to this project?

Put an x in the boxes that apply

Package version increase in cli package?

Checklist before merging

Put an x in the boxes that apply

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bhai-lang-docs-preview ❌ Failed (Inspect) Dec 28, 2023 2:41pm