Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Assignment to Fields #58

Open
2 tasks
sunjay opened this issue Mar 4, 2017 · 0 comments
Open
2 tasks

Assignment to Fields #58

sunjay opened this issue Mar 4, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Mar 4, 2017

Currently, the AST only supports assignment to plain identifiers. The grammar should support assignment to fields (at an arbitrary depth).

// currently supported
foo = 2;

// wanted
bar.foo.spam = 4;
bar.foo.spam.car = 4;

Note that this is just the grammar to support this. The actual implementation will be when #39 is completed.

  • Fields should be properly nested so that foo.bar.spam.car = 4 is equivalent to ((foo.bar).spam).car = 4. (like Arbitrary Field Access #57)
  • Field privacy should be respected
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant