Open kaby76 opened 2 years ago
Apparently CommandLineParser accepts "-input". It SHOULD NOT! In fact, the space between the "-i" and the value is optional https://github.com/commandlineparser/commandline/wiki/CommandLine-Grammar. IT SHOULD NOT!
I really, really hate having to write a command-line argument parser, but this is ridiculous and completely unacceptable.
For this grammar:
generate a CSharp target parser (trgen -t CSharp -s all) and test for input "84/2". Beyond the fact that the grammar doesn't define the multiplicative operators correctly (they are ordered in different alts!), "trparse -input '8\4/2' | trtree" is a truncated tree. If the input is in a file, "trparse file | trtree" works fine.
0.13.8.