Projects per year
Abstract
Backtracking techniques which are often used to extend recursive descent (RD) parsers can have explosive run-times and cannot deal with grammars with left recursion. GLL parsers are fully general, worst-case cubic parsers which have the recursive descent-like property that they are easy to write and to use for grammar debugging. They have the direct relationship with the grammar that an RD parser has. In this paper we give an algorithm for generating GLL parsers which build an SPPF representation of the derivations of the input, complementing our existing GLL recognition algorithm, and we show that such parsers and recognisers are worst-case cubic.
Original language | English |
---|---|
Pages (from-to) | 1828–1844 |
Number of pages | 17 |
Journal | Science of Computer Programming |
Volume | 78 |
Issue number | 10 |
Early online date | 7 Apr 2012 |
DOIs | |
Publication status | Published - 1 Oct 2013 |
Projects
- 1 Finished
-
PLanCompS: PLanCompS: Programming Language Components and Specifications
Johnstone, A. (PI), Scott, E. (CoI), Reddington, J. (CoI) & Walsh, R. (CoI)
Eng & Phys Sci Res Council EPSRC
1/06/11 → 31/05/15
Project: Research