Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing algorithms for ambiguities #24

Open
jtrakk opened this issue Mar 25, 2021 · 2 comments
Open

Parsing algorithms for ambiguities #24

jtrakk opened this issue Mar 25, 2021 · 2 comments

Comments

@jtrakk
Copy link

jtrakk commented Mar 25, 2021

There are various parsing algorithms that have different properties. Earley parsers can see if a string matches the grammar in multiple different ways and return all of the options. That's mentioned briefly in the ParserCombinator.jl docs and is supported by Python's Lark.

@jtrakk jtrakk changed the title Parsing algorithms Parsing algorithms for ambiguities Mar 25, 2021
@jtrakk
Copy link
Author

jtrakk commented Mar 25, 2021

I wonder if CombinedParsers.jl and Lerche.jl could share some algorithms.

@gkappler
Copy link
Owner

CombinedParsers can also iterate all matches of a grammar, just iterate over parse_all.

I am checking out Lerche, plugging in more efficient parsing algorithms would surely be good. I need to see if/how that is possible with the functional parser combinator paradigm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants