NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FliPpr: A System for Deriving Parsers from Pretty-Printers

Kazutaka Matsuda, Meng WangNew Gener. Comput 2018

Abstract

When implementing a programming language, we often write a parser and a pretty-printer. However, manually writing both programs is not only tedious but also error-prone; it may happen that a pretty-printed result is not correctly parsed. In this paper, we propose FliPpr, which is a program transformation system that uses program inversion to produce a CFG parser from a pretty-printer. This novel approach has the advantages of fine-grained control over pretty-printing, and easy reuse of existing efficient pretty-printer and parser implementations.
BibTeX
@inproceedings{matsuda2018flippr,
  author = {Kazutaka Matsuda and Meng Wang},
  title = {{FliPpr: A System for Deriving Parsers from Pretty-Printers}},
  booktitle = {New Gener. Comput},
  year = {2018},
  url = {https://openreview.net/forum?id=xxLz8sK2me},
}

Loading related content...

Figure