Skip to content

[Parser] Reuse expressions in syntax tree #341

Open
@sys27

Description

@sys27

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions