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

dictionary type #8

Closed
19 tasks done
Tracked by #3 ...
michal-kapala opened this issue Dec 12, 2023 · 1 comment
Closed
19 tasks done
Tracked by #3 ...

dictionary type #8

michal-kapala opened this issue Dec 12, 2023 · 1 comment
Assignees
Labels
core Core feature interpreter Related to interpreter module

Comments

@michal-kapala
Copy link
Owner

michal-kapala commented Dec 12, 2023

Dictionary objects equivalent to TS maps are a separate type.

Dependency on:

Implementation

Operators

  • assignments
  • unary operators
  • binary operators
  • member access
    • LHS (write)
    • RHS (read)

Cross-type interactions

  • number
  • bool
  • string
  • null
  • array
  • dictionary
  • binary
  • date

Functions

Required for release:

Side effects

Dictionaries returned from scripts are implicitly converted to a string representation, e.g.

<trans>
a = Dict();
a["key1"] = "content";
a["key2"] = "more content";
a
</trans>

will return a representation of:

"[key1=>\"content\",key2=>\"more content\"]"

Currently there is no deserialization available for this format.

@michal-kapala michal-kapala added core Core feature interpreter Related to interpreter module labels Dec 12, 2023
@michal-kapala michal-kapala added this to the Package release milestone Dec 12, 2023
@michal-kapala michal-kapala mentioned this issue Dec 12, 2023
2 tasks
@michal-kapala michal-kapala self-assigned this Dec 15, 2023
michal-kapala added a commit that referenced this issue Dec 16, 2023
+ dict initializers (Dict/Map)
+ member access for simple-type keys and basic member assignment
+ -=/+= assignments to be added
+ toString() for array/dict key to be added (ideally make them classes)
+ operator type handling to be extended
@michal-kapala michal-kapala mentioned this issue Dec 21, 2023
27 tasks
@michal-kapala
Copy link
Owner Author

Closed by cda67a6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core feature interpreter Related to interpreter module
Projects
Status: Done
Development

No branches or pull requests

1 participant