[Pegged] making parsing error informative

drug drug2004 at bk.ru
Sun Nov 25 17:54:37 UTC 2018


I have the following grammar https://run.dlang.io/is/gRTGm3
If user types `ubyte1` instead of `ubyte` the whole string parsing fails 
and error message says string is wrong from the start. How can I get 
more informative message like "unknown type ubyte1" or at least error 
position points to `ubyte1` not the whole string?


More information about the Digitalmars-d-learn mailing list