1. Derivation representation using binary subtree sets.
- Author
-
Scott, Elizabeth, Johnstone, Adrian, and van Binsbergen, L. Thomas
- Subjects
- *
PARSING (Computer grammar) , *COMPUTER algorithms , *COMPUTATIONAL linguistics , *FORMAL languages , *COMPUTER programming - Abstract
Abstract This paper introduces sets of binary subtree representations as an alternative to shared packed parse forests as the output of a generalised parser, and shows how these may be generated by Earley's algorithm, by a new GLL-style parser and by Johnson's continuation passing combinator style parsers. The set based output removes the clerical overhead associated with graph constructions, making the parsers simpler. Highlights • Introduces BSR sets, an alternative to the SPPF representation of all derivations of a string. • General BSR combinator parsers and Earley-style parsers are presented. • A new BSR GLL-style parser (CNP) is presented which has a more efficient combined call stack. • Data structure size comparisons for GLL and CNP are given for C, C++ and Java grammars. [ABSTRACT FROM AUTHOR]
- Published
- 2019
- Full Text
- View/download PDF