Context: I'm porting an existing handwritten parser to use parsus.
Right now, parsus offers variety of methods to accomplish almost the same task. e.g. repeatOneOrMore vs. oneOrMore
As parsus' API is mostly undocumented and has to be discovered by type-completion, it would be helpful if the "right" methods were more obviously promoted in their context.
Kotlin offers a @DslMarker annotation for type-safe builders that is designed for this situation.
Context: I'm porting an existing handwritten parser to use parsus.
Right now, parsus offers variety of methods to accomplish almost the same task. e.g.
repeatOneOrMorevs.oneOrMoreAs parsus' API is mostly undocumented and has to be discovered by type-completion, it would be helpful if the "right" methods were more obviously promoted in their context.
Kotlin offers a
@DslMarkerannotation for type-safe builders that is designed for this situation.