ACM Home Page
Please provide us with feedback. Feedback
Partial evaluation of general parsers
Full text PdfPdf (895 KB)
Source ACM/SIGPLAN Workshop Partial Evaluation and Semantics-Based Program Manipulation archive
Proceedings of the 1993 ACM SIGPLAN symposium on Partial evaluation and semantics-based program manipulation table of contents
Copenhagen, Denmark
Pages: 13 - 21  
Year of Publication: 1993
ISBN:0-89791-594-1
Author
Christian Mossin  Univ. of Copenhagen, Copenhagen, Denmark
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 0,   Downloads (12 Months): 6,   Citation Count: 5
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/154630.154632
What is a DOI?

ABSTRACT

Applications of partial evaluation have so far mainly focused on generation of compilers from interpreters for programming languages. We partially evaluate a simple general LR(k) parsing algorithm. To obtain good results, we rewrite the algorithm using a number of binding-time improvements. The final LR(1) parser has been specialized using Similix, a partial evaluator for a higher order subset of Scheme [3]. The obtained specialized parsers are efficient and compact. Partial evaluation is responsible for the (equivalent of) the sets-of-items construction, and the construction of parsing tables. This paper is an extended abstract of [14].


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
 
2
D. Bjcrner, A. P. Ershov, and N. D. Jones, editors. Partial Evaluation and Mixed Computation. IFIP TC2, North-Holland, 1988. Workshop proceedings, October 1987, G1. Avernms, Denmark.
 
3
 
4
A. Bondorf. Similix Manual, system version 4.0. DIKU, University of Copenhagen, Denmark, Sept. 1991.
 
5
 
6
 
7
H. Dybkjeer. Parsers and partial evaluation: an experiment. Student Report 85-7-15, DIKU, University of Copenhagen, Denmark, July 1985.
 
8
 
9
 
10
J. JCrgensen. Generating a pattern matching compiler by partial evaluation. In P. C. van Rijsbergen, editor, Glasgow Workshop on Functional Programming, Ullapool, pages 177-195, Glasgow University, July 1990. Springer-Verlag.
11
 
12
D. E. Knuth. On the translation of languages from left to right. Information and Control, 8:607 - 639, 1965.
 
13
C. Mossin. Similix binding time debugger manual, system version 4.0. Included in Similix distribution, Sept. 1991.
 
14
C. Mossin. Partial evaluation of general parsers. Student Report 92-8-1, DIKU, University of Copenhagen, Denmark, Aug. 1992.
 
15
C. Queinnec and J.-M. Geffroy. Partial evaluation applied to pattern matching with intelligent backtrack. In Workshop on Static Analysis, pages 109 - 117, 1992.
 
16