I don't know if this is possible, or even a good design: when I do trparse foo.g4, most of the time I'm just interested in whether the parse actually succeeded. I don't want all the parsing result. But, clearly, for trparse foo.g4 | trtree, trparse should output a parsing result. And for trparse 2>&1 | less, I just want the list of error messages. Perhaps I should offer an optional arg for parsing result?
I don't know if this is possible, or even a good design: when I do
trparse foo.g4
, most of the time I'm just interested in whether the parse actually succeeded. I don't want all the parsing result. But, clearly, fortrparse foo.g4 | trtree
, trparse should output a parsing result. And fortrparse 2>&1 | less
, I just want the list of error messages. Perhaps I should offer an optional arg for parsing result?