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

Implement JS-style variable destructuring. #7

Open
NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Open

Implement JS-style variable destructuring. #7

NotJustAnna opened this issue Nov 14, 2021 · 0 comments
Labels
component:parser This issue is related to the Parser, Grammar and/or Parselets. enhancement New feature or request TODO There's a TODO in code marking it.
Milestone

Comments

@NotJustAnna
Copy link
Owner

NotJustAnna commented Nov 14, 2021

Implement JS-style variable destructuring in Lin.

Destructuring will only be allowed at variable declarations.

com.github.adriantodt.lin.parser.parselets.misc.DeclareVariableParser#parse(DeclareVariableParser:18):
image

The old Lin implementation implements Kotlin-style destructuring. It's probably worth taking a look too.

@NotJustAnna NotJustAnna added this to the Version 1.0 milestone Nov 14, 2021
@NotJustAnna NotJustAnna added component:parser This issue is related to the Parser, Grammar and/or Parselets. enhancement New feature or request TODO There's a TODO in code marking it. labels Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:parser This issue is related to the Parser, Grammar and/or Parselets. enhancement New feature or request TODO There's a TODO in code marking it.
Projects
None yet
Development

No branches or pull requests

1 participant