Repository navigation
feat: scoped variables - #16
Merged
Merged
Conversation
commit: |
dermitzos
force-pushed
the
feat/object-variables
branch
from
March 19, 2026 12:13
6aa6b42 to
ecfc319
Compare
dermitzos
force-pushed
the
feat/object-variables
branch
from
March 26, 2026 12:21
ecfc319 to
514576a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant refactor to the Arcscript interpreter's variable management system, moving from plain JavaScript objects to an
ArcscriptVariableclass for handling variable state, scoping, and changes. This change affects core interpreter logic, variable access, mutability, and how tests are structured. Additionally, it updates dependencies to include TypeScript 5.9.3.Arcscript variable management refactor:
ArcscriptVariableclass to encapsulate variable state, including value, default value, type, scope, and change tracking (TypeScript/src/ArcscriptVariable.ts).ArcscriptStateto useArcscriptVariableinstances for both global and scoped variables, replacing previous plain object structures and related logic (TypeScript/src/ArcscriptState.ts). [1] [2] [3]ArcscriptFunctionsto operate onArcscriptVariableinstances, simplifying logic and improving type safety (TypeScript/src/ArcscriptFunctions.ts). [1] [2] [3]Testing and type improvements:
TypeScript/src/__tests__/antlr4.interpreter.test.ts). [1] [2] [3] [4] [5] [6] [7]Dependency updates:
TypeScript/package.json,TypeScript/pnpm-lock.yaml). [1] [2]