Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol Table: Maintain tables by variable data type #123

Closed
wants to merge 11 commits into from

Conversation

impAkshat
Copy link
Contributor

@impAkshat impAkshat commented Feb 7, 2022

Issue: #84

Refactored src/execution/symbolTable.ts

  • Refactored IVariableTable
  • Refactored all the variabels and functions according

Once reviewed and after making required changes, I will add the tests also.

* Changed `IVariableTable` type
* Changed `_globalTable` accordingly
* Refactored `_getTableVariable` function
* Refactored all the functions which uses `_getTableVariable` function
* Refactored _getTableVariableNamesWithTypes
* Refactored all the functions which uses _getTableVariableNamesWithTypes function

There are no breaking changes.
* Refactored `_getTableVariableNamesWithTypesAll`
* Refactored all the functions which uses `_getTableVariableNamesWithTypesAll`

There are no breaking changes.
* Refactored _removeTableVariable function
* Refactored all functions which uses _removeTableVariable function

**There can be breaking changes**
* Refactored `addGlobalVariable`
* Refactored `getGlobalVariable`

BREAKING CHANGE: there can be breaking changes as `getGlobalVariable` is imported in [`src/execution/interpreter.ts`](https://github.com/sugarlabs/musicblocks-v4-lib/blob/develop/src/execution/interpreter.ts)
…ariableNamesWithTypes

* Refactored `getGlobalVariableNames` function
* Refactored `getGlobalVariableNamesWithTypes` function
…ariables functions

* Refactored removeGlobalVariable function
* Refactored flushGlobalVariables function
@meganindya meganindya added this to the Release v0.3.0 milestone Feb 14, 2022
@meganindya meganindya closed this Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants