Add support for "event"-like interface to parsing

and drop the querier
This commit is contained in:
2022-11-08 19:26:23 -05:00
parent c93d1cd4f0
commit b97681c710
11 changed files with 398 additions and 260 deletions

View File

@@ -29,7 +29,7 @@ func main() {
log.Fatal(err)
}
ast := argh.NewQuerier(pt.Nodes).AST()
ast := argh.ToAST(pt.Nodes)
if asJSON {
b, err := json.MarshalIndent(ast, "", " ")