on named field queries and error handing

This commit is contained in:
anon 2024-09-12 22:41:42 +02:00
parent 152216bed3
commit 037494350f

View File

@ -75,4 +75,16 @@ enter a b { <...> }
enter leave a { <...> }
// In node type blobbing should probably be allowed, however regex sounds like overkill
/* A query language should also exist
* $0-><name>
* Where <name> is the named field of the rules node.
* The reason something like this could be useful is because
* if such queries are performed by hand, they can easily segv if not checked,
* however, because of the required checking they are very non-ergonomic.
* For error handinding say something this could be employed:
* enter a { ; } catch { ; }
* Where 'catch' could be implemented as a goto.
* I am unsure whether this would be too generic to be useful or not.
*/
```