Skip to content

General Lexer can't deal with overlapping inputs #74

@nesaro

Description

@nesaro

given grammar1 as the grammar that accepts 1,2,3
and grammar2 (2,3,4)

lexer(grammarcollection([grammar1, grammar2]) (which calls a GeneralLexer) will raise an exception because both grammars will claim 3 as a valid element

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1410380-general-lexer-can-t-deal-with-overlapping-inputs?utm_campaign=plugin&utm_content=tracker%2F129089&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F129089&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions