Loading...
Please wait, while we are loading the content...
Similar Documents
Efficient Combinator Parsers (1998)
| Content Provider | CiteSeerX |
|---|---|
| Author | Koopman, Pieter Plasmeijer, Rinus |
| Description | . Parser combinators enable the construction of recursive descent parsers in a very clear and simple way. Unfortunately, the resulting parsers have a polynomial complexity and are far too slow for realistic inputs. We show how the speed of these parsers can be improved by one order of magnitude using continuations. These continuations prevents the creation of intermediate data structures. Furthermore, by using an exclusive or-combinator instead of the ordinary or-combinator the complexity for deterministic parsers can be reduced from polynomial to linear. The combination of both improvements turn parser combinators from a beautiful toy to a practically applicable tool which can be used for real world applications. The improved parser combinators remain very easy to use and are still able to handle ambiguous grammars. 1 Introduction Parser combinators [3, 6, 5, 8] are a beautiful illustration of the use of higher order functions and currying. By using a small set of parser combinators ... |
| File Format | |
| Language | English |
| Publisher | Springer-Verlag |
| Publisher Date | 1998-01-01 |
| Publisher Institution | In Implementation of Functional Languages, LNCS |
| Access Restriction | Open |
| Subject Keyword | Intermediate Data Structure Applicable Tool Simple Way Efficient Combinator Parser Polynomial Complexity Beautiful Illustration Introduction Parser Combinators Ordinary Or-combinator Real World Application Small Set Recursive Descent Parser Exclusive Or-combinator Ambiguous Grammar Realistic Input Parser Combinators Beautiful Toy Improved Parser Combinators Deterministic Parser Order Function |
| Content Type | Text |
| Resource Type | Article |