ACM Home Page
Please provide us with feedback. Feedback
A new top-down parsing algorithm to accommodate ambiguity and left recursion in polynomial time
Full text PdfPdf (255 KB)
Source ACM SIGPLAN Notices archive
Volume 41 ,  Issue 5  (May 2006) table of contents
COLUMN: Technical correspondence table of contents
Pages: 46 - 54  
Year of Publication: 2006
ISSN:0362-1340
Authors
Richard A. Frost  University of Windsor, Windsor, Ontario Canada ON
Rahmatullah Hafiz  University of Windsor, Windsor, Ontario Canada ON
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 11,   Downloads (12 Months): 107,   Citation Count: 2
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1149982.1149988
What is a DOI?

ABSTRACT

Top-down backtracking language processors are highly modular, can handle ambiguity, and are easy to implement with clear and maintainable code. However, a widely-held, and incorrect, view is that top-down processors are inherently exponential for ambiguous grammars and cannot accommodate left-recursive productions. It has been known for many years that exponential complexity can be avoided by memoization, and that left-recursive productions can be accommodated through a variety of techniques. However, until now, memoization and techniques for handling left recursion have either been presented independently, or else attempts at their integration have compromised modularity and clarity of the code.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Camarao, C., Figueiredo, L. and Oliveira, R. H. (2003) Mimico: A Monadic Combinator Compiler Generator. Journal of the Brazilian Computer Society Vol 9(1).
 
2
Frost, R. A. and Hafiz, R. (2006) Using monads to accommodate ambiguity and left recursion with parser combinators. Technical Report 06-007 School of Computer Science, University of Windsor, Canada.
 
3
Frost, R. A. (2003) Monadic memoization --- Towards Correctness-Preserving Reduction of Search. AI 2003 eds. Y. Xiang and B. Chaib-draa. LNAI 2671 66--80.
 
4
 
5
Hutton, G. (1992) Higher-order functions for parsing. J. Functional Programming 2 (3) 323--343.
 
6
 
7
 
8
9
 
10
 
11
Lickman, P. (1995) Parsing With Fixed Points. Master's Thesis, University of Cambridge.
 
12
Nederhof, M. J. and Koster, C. H. A. (1993) Top-Down Parsing for Left-recursive Grammars. Technical Report 93-10 Research Institute for Declarative Systems, Department of Informatics, Faculty of Mathematics and Informatics, Katholieke Universiteit, Nijmegen.
 
13
 
14
Shiel, B. A. 1976 Observations on context-free parsing. Technical Report TR 12-76, Center for Research in Computing Technology, Aiken Computational Laboratory, Harvard University.
 
15
 
16


Collaborative Colleagues:
Richard A. Frost: colleagues
Rahmatullah Hafiz: colleagues