Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GLR parsing algorithm resources [closed]

Tags:

I am writing a GLR parser generator and would like some advice on resources relating to this algorithm both on the internet and of the dead-tree variety (books for those unfamiliar with the geek-speak).

I know Bison can generate GLR parsers, and given it's under the GPL I can examine its code, however it'd be nice to have a full description of the algorithm.

So, does anybody know of any good resources out there which I can make use of? Thanks.

like image 917
ljs Avatar asked Jan 25 '10 00:01

ljs


1 Answers

Some good stuff I've come across before online:

  • a paper about Elkhound, another open source GLR parser: Scott McPeak, George C. Necula. Elkhound: A Fast, Practical GLR Parser Generator. In Proceedings of Conference on Compiler Constructor (CC04), April 2004.

and for more detail:

  • the UCB/CSSD-2-1214 technical report, which is an expanded version of the above paper;
  • the paper referenced in the Bison documentation: Elizabeth Scott, Adrian Johnstone and Shamsa Sadaf Hussain. Tomita-Style Generalised LR Parsers. TR-00-12, Royal Holloway, University of London, Department of Computer Science, December 2000.

And I know of a third open source GLR parser: DParser.

like image 50
Matthew Slattery Avatar answered Sep 30 '22 07:09

Matthew Slattery