Path Expressions

Path Expressions are a way to comprehend code from other code. They provide an XPath-like navigation into the abstract syntax tree (AST), returning nodes that can be inspected and updated.

When you update the value of a node, the code is updated in place. The idea is to duplicate the changes we as humans would make to the code.

Path expressions are implemented in the tree-path library. Check the syntax documentation there.