Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Greedy matching of plus operator #12

Description

@tsengia

Currently plus operator will match as many input tokens as it can, which leads to a bug when the following grammar is used:
public <command> = hello+ hello world;
Valid input such as "hello hello world" should match the command rule, but does not because the previous plus operator uses up all of the "hello"s.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions