Did you ever get a response here or elsewhere?
I would use that. Trying to figure out a rule system isn’t straightforward if you’re not used to it
@kahunamoore no discussion elsewhere
I suspect I'll eventually do it, but it's behind another personal project that's probably months away.
@eraserhd sorry for delay, wasn’t completely clear on what you were saying there
is a “rule description” a set of rules/queries? so a ruleset?
And this would be convenient because you could tie it in with scripts?
I'm also not clear on what's being discussed - is this a proposed tool for rule generation?
Ahhh.... OK. So I'm thinking of a tool like awk that can take a ruleset with -e the way awk takes a program, and reads facts from input, like an FS separated file.
The example I came up with was a script to iterate through my tmux panes and use their positions to find the upper-rightmost pane (because I need to configure the editor in that one).
So essentially I had two tables: <top> <left> <pane-id> and <pane-id> <editor-id>.
And this is in shell, because my editor likes to be extended that way.
But it seemed natural to have a tool that can do datalog-like queries on files like this.