tree-edit icon indicating copy to clipboard operation
tree-edit copied to clipboard

Automated use of precedence nodes

Open ethan-leba opened this issue 4 years ago • 0 comments
trafficstars

Tree-edit should be smart about the precedence of nodes, for example in a C-like language: Inserting an + into x * [y] should output x * (y + z), as due to the precedence rules x * y + z would modify the AST of y to place it under a new parent, or inserting * in [x + y] should produce (x + y) * z.

ethan-leba avatar Aug 30 '21 22:08 ethan-leba