Parser combinators for ambiguous left-recursive grammars

  • Authors:
  • Richard A. Frost;Rahmatullah Hafiz;Paul Callaghan

  • Affiliations:
  • School of Computer Science, University of Windsor, Canada;School of Computer Science, University of Windsor, Canada;Department of Computer Science, University of Durham, U.K.

  • Venue:
  • PADL'08 Proceedings of the 10th international conference on Practical aspects of declarative languages
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Parser combinators are higher-order functions used to build parsers as executable specifications of grammars. Some existing implementations are only able to handle limited ambiguity, some have exponential time and/or space complexity for ambiguous input, most cannot accommodate left-recursive grammars. This paper describes combinators, implemented in Haskell, which overcome all of these limitations.