Indentation-sensitive parsing for Parsec

@inproceedings{Adams2014IndentationsensitivePF,
  title={Indentation-sensitive parsing for Parsec},
  author={Michael D. Adams and {\"O}mer S. Agacan},
  booktitle={Haskell},
  year={2014}
}
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. However, that previous work is limited to bottom-up, LR($k$) parsing… CONTINUE READING