Skip to content

Improved messages (support for autocompletion) #50

@bpieber

Description

@bpieber

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions