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

Faster backend algorithms #19

Open
1 of 11 tasks
pczarn opened this issue May 21, 2016 · 0 comments
Open
1 of 11 tasks

Faster backend algorithms #19

pczarn opened this issue May 21, 2016 · 0 comments

Comments

@pczarn
Copy link
Owner

pczarn commented May 21, 2016

At every parsing step, we can check whether the parse will be temporarily deterministic. We could also find all symbols that encode regular languages, and put them in one big NFA VM.

  • regular grammars
    • DFA
    • NFA (perhaps not worth adding) (nondeterministic!)
  • LL
    • classification
    • backend algorithm
  • LALR
    • classification
    • backend algorithm
  • LR
    • lane table method, or IELR

Of all grammar classes these algorithms work for, some will be subsets of others. For example, LL is contained in LR, and regular grammars (DFA) are contained in LL. Better only choose those algorithms that give substantial speedup, then.

Ensure that all of the following features do not collide with alternative algorithms: semantic actions, tracing, events, error messages, parse exhaustion, and LATM.

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