Proceedings of the 2014 ACM SIGPLAN Symposium on Haskell 2014
DOI: 10.1145/2633357.2633369
|View full text |Cite
|
Sign up to set email alerts
|

Indentation-sensitive parsing for Parsec

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.However, that previous work is limited to bottom-up, LR(k) parsing, and many combinator… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
15
0

Year Published

2016
2016
2020
2020

Publication Types

Select...
3
3

Relationship

0
6

Authors

Journals

citations
Cited by 14 publications
(15 citation statements)
references
References 6 publications
0
15
0
Order By: Relevance
“…Accordingly, we can make a precedencepreserving form of ASTs by folding from the repetition. #Int [1] #Int [2] $left $right $left $right #Mul #Add #Int [1] #Int [1] #Int [2] $left $right $left $right Figure 1. Mathematical basic operators and example of ASTs…”
Section: Ast Operatorsmentioning
confidence: 99%
See 3 more Smart Citations
“…Accordingly, we can make a precedencepreserving form of ASTs by folding from the repetition. #Int [1] #Int [2] $left $right $left $right #Mul #Add #Int [1] #Int [1] #Int [2] $left $right $left $right Figure 1. Mathematical basic operators and example of ASTs…”
Section: Ast Operatorsmentioning
confidence: 99%
“…• JavaScript -Based on JavaScript grammar for PEG.js 2 . We simplify the grammar specification using the parsing condition InOperator that distinguishes expression rules from the for/in context.…”
Section: Case Studies and Experiencesmentioning
confidence: 99%
See 2 more Smart Citations
“…Since semantic actions are written in a host language of the generated parser, the use of semantic actions may 1 Zuken Inc. He worked this paper when he studied in Yokohama National University 2 Graduate School of Electronic and Computer Engineering, Yokohama National University, 79-1 Tokiwadai, Hodogaya-ku, Yokohama 240-8501 JAPAN a) kimio@ynu.ac.jp invalidate the declarative property of PEGs, thus resulting in reduced reusability of grammars. As a result, many developers need to redevelop grammars for their software engineering tools.…”
Section: Introductionmentioning
confidence: 99%