kaby76 / Trash

Toolkit for grammars
MIT License
73 stars 5 forks source link

Trash commands should be able to distinguish between clients that read output #34

Open kaby76 opened 2 years ago

kaby76 commented 2 years ago

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?

SKalt commented 2 years ago

I think a --no-stdout or --test flag would be useful.