|
|
|
|
|
by ashkankiani
659 days ago
|
|
Adding a way to query the path at the current node would let you skip out on doing stuff like keeping track of `in_section`. I wonder if the `enter|exit ...` syntax might be too limiting but for a lot of stuff it seems nice and easy to reason about. Easier than tree-sitter's own queries. I think if you really wanted performance and whatnot, you might end up compiling the queries to another target and just reuse them. I could see myself writing a lua DSL around compiling these kinds of queries `enter/exit` stanzas or an SQL one too. |
|