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

[Parser] Reuse expressions in syntax tree #341

Open
sys27 opened this issue Sep 26, 2020 · 0 comments
Open

[Parser] Reuse expressions in syntax tree #341

sys27 opened this issue Sep 26, 2020 · 0 comments
Assignees
Labels
enhancement proposal Features that are not approved yet

Comments

@sys27
Copy link
Owner

sys27 commented Sep 26, 2020

2 + 2 is parsed as

   +
 /   \
2     2

but it can be parsed as

   +
 /   \
 \   /
   2

Because expressions are immutable (#331) it can be applied to all types of expressions, but probably we can use simpler approach, apply it only for numbers and variables.

Related #146.

@sys27 sys27 added enhancement proposal Features that are not approved yet labels Sep 26, 2020
@sys27 sys27 self-assigned this Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement proposal Features that are not approved yet
Projects
None yet
Development

No branches or pull requests

1 participant