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

Doesn't implement GSS #2

Open
puffnfresh opened this issue Mar 24, 2013 · 1 comment
Open

Doesn't implement GSS #2

puffnfresh opened this issue Mar 24, 2013 · 1 comment

Comments

@puffnfresh
Copy link

The Graph-Structured Stack (GSS) is the trick which gets GLL's worst-case parse time down to O(n^3).

Masaru Tomlta's paper describes the GSS in detail:

http://acl.ldc.upenn.edu/P/P88/P88-1031.pdf

Without a correct GSS, the parser isn't really GLL. The worst-case performance would be at least O(n^4).

@epsil
Copy link
Owner

epsil commented Apr 30, 2013

Thank you for your feedback. I've updated the section on complexity.

As of presently, there are several things missing from the article:

  • Making the trampoline structure more efficient (as you've pointed out).
  • Achieving linear speed for LL(1) grammars by computing the FIRST set and adorning the parsers with additional metadata.
  • Improving the error handling (issue Would love to see more about error handling #1).

Unfortunately, I'm in a very busy period of my life and currently don't have the time to extend the article. But I put the text under version control to make collaboration simple. If anyone wants to improve on it, their contributions would be most welcome.

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