Skip to content

have oneOf in addition of or in grammar and have or|oneOf(String) #4

Open
@verhas

Description

@verhas

Using oneOf() instead of or() may be readable in some grammars. Matter of taste and since the main aim of jsdl grammar is readability it makes sense to have a method with multiple names.

Also the method should work for String argument ˛"abcd" making

oneOf("abdc")

equivalent to

oneOf(kw("a"),kw("b"),kw("c"),kw("d"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions