Hi Lukas,
Given the following Parser:
Parser parser = StringParser.of("ABC").or(StringParser.of("DEF"));
When I parse the empty string:
String message = parser.parse("").getMessage();
I get the following message:
DEF expected
I wonder how difficult it would be to somehow get the following instead/in addition to?
ABC OR DEF expected
That would be also be helpful to implement autocompletion based on the grammar. (Xtext can do this IIRC.)
Cheers,
Bernhard