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

Earley parser is extremely slow #199

Open
elliotchance opened this issue Nov 12, 2024 · 0 comments
Open

Earley parser is extremely slow #199

elliotchance opened this issue Nov 12, 2024 · 0 comments

Comments

@elliotchance
Copy link
Owner

The earley parser is designed for ambitious grammars by solving every possible path, but vsql only cares that there is one successful path so it just uses the first. However, this means that with an increasing number of tokens it gets exponentially slower.

We need to replace this with a LR(1) parser, but we'd need a generator like yacc for creating the tables and resolving the ambiguities.

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

1 participant