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

Enable chaining for some patterns #3

Open
quasilyte opened this issue Dec 24, 2017 · 2 comments
Open

Enable chaining for some patterns #3

quasilyte opened this issue Dec 24, 2017 · 2 comments
Milestone

Comments

@quasilyte
Copy link
Collaborator

quasilyte commented Dec 24, 2017

Expression: a.b.c
Pattern: (. (. a b) c)
With chaining: (. a b c)

Expression: [a][b]int
Pattern: (array_type a (array_type b int))
With chaining: (array_type a b int)

@quasilyte quasilyte changed the title tagMemberAccess chaining Enable chaining for some patterns Dec 24, 2017
@quasilyte
Copy link
Collaborator Author

Implemented chaining for . pattern.

@quasilyte quasilyte added this to the alpha v0.9 milestone Jan 6, 2018
@quasilyte
Copy link
Collaborator Author

Implemented chaining for array pattern:

(array [x][y][] z)
=
(array [x] (array [y] (array [] z)))

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

No branches or pull requests

1 participant