|
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
|
Alfred V. Aho , Ravi Sethi , Jeffrey D. Ullman, Compilers: principles, techniques, and tools, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1986
|
| |
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
|
|
CITED BY 5
|
|
|
|
|
Michael Sperber , Peter Thiemann , Hervert Klaeren, Distributed partial evaluation, Proceedings of the second international symposium on Parallel symbolic computation, p.80-87, July 20-22, 1997, Maui, Hawaii, United States
|
|
|
|
|
|
|
|
|
|
|