Agdarsec - total parser combinators

Guillaume Allais*

*Corresponding author for this work

Research output: Contribution to conferencePaperpeer-review

2 Citations (Scopus)
32 Downloads (Pure)

Abstract

Parser combinator libraries represent parsers as functions and, using higher-order functions, define a DSL of combinators allowing users to quickly put together programs capable of handling complex recursive grammars. When moving to total functional languages such as Agda, these programs cannot be directly ported: there is nothing in the original definitions guaranteeing termination. In this paper, we will introduce a 'guarded' modal operator acting on types and show how it allows us to give more precise types to existing combinators thus guaranteeing totality.

Original languageEnglish
Pages45-59
Number of pages15
Publication statusPublished - 12 Feb 2018
EventVingt-neuviemes Journees Francophones des Langages Applicatifs, JFLA 2018 - 29th French-Speaking Conference on Applicative Languages, JFLA 2018 - Banyuls-sur-Mer, France
Duration: 24 Jan 201827 Jan 2018

Conference

ConferenceVingt-neuviemes Journees Francophones des Langages Applicatifs, JFLA 2018 - 29th French-Speaking Conference on Applicative Languages, JFLA 2018
Country/TerritoryFrance
CityBanyuls-sur-Mer
Period24/01/1827/01/18

Keywords

  • total parser combinators
  • higher-order functions
  • total functional languages

Fingerprint

Dive into the research topics of 'Agdarsec - total parser combinators'. Together they form a unique fingerprint.

Cite this