kirancodes.me
To Proof Maintenance & Beyond!

Indentation-sensitive parsing for Parsec

Michael D. Adams, Ömer S. Agacan

Abstract

Several popular languages including Haskell and Python use the indentation and layout of code as an essential part of their syntax. In the past, implementations of these languages used ad hoc techniques to implement layout. Recent work has shown that a simple extension to context-free grammars can replace these ad hoc techniques and provide both formal foundations and efficient parsing algorithms for indentation sensitivity.

DOI 10.1145/2633357.2633369

Related papers