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

Packrat parsing expression library #3

Open
kwvanderlinde opened this issue Sep 9, 2017 · 0 comments
Open

Packrat parsing expression library #3

kwvanderlinde opened this issue Sep 9, 2017 · 0 comments
Assignees
Milestone

Comments

@kwvanderlinde
Copy link
Owner

Overview

Expanding from #2, we need our parsing expressions to be automatically memoized. The basic rule of a PEG is that each expression can have at most a single expansion at any position within the input, which makes a Packrat parser ideal for this scenario.

Acceptance Criteria

  • Our parser implements memoization for each expression at each input location.
  • Memoization is done on an as-needed basis.
  • Both failures and successes are memoized.
  • Parser performance is reduced to linear time in the number of expressions and the length of input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant