Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Incremental generation of lexical scanners
Heering J., Klint P., Rekers J. ACM Transactions on Programming Languages and Systems14 (4):490-520,1992.Type:Article
Date Reviewed: Mar 1 1994

The standard approach used to construct a lexical analyzer automatically is to begin with a specification of the lexical elements as regular expressions and to translate the collection of regular expressions into a finite state automaton. The authors begin by describing an algorithm to perform the translation using lazy evaluation techniques. They then provide additional algorithms to modify the existing translation when a regular expression is added to the collection or a regular expression in the collection is removed.

The work is a well written and interesting exercise in applying lazy incremental programming techniques to a standard compiler construction tool. It makes a natural companion piece to another paper written by the same authors on generating parsers incrementally [1]. Whether any great need for the incremental scanner generator exists is, however, a major question in my eyes. I consider the existing tools to be blindingly fast and I would not notice the difference if an even faster incremental generation technique were to be used. An even more important issue is that the generated scanner executes lazily, which means, in effect, that the entries in the tables defining the finite state machine are created only as the scanner is used. The implication is that the generated scanner executes significantly more slowly than if lazy techniques were not employed.

Reviewer:  R. Nigel Horspool Review #: CR116879
1) Heering, J.; Klint, P.; and Rekers, J. Incremental generation of parsers. IEEE Trans. Softw. Eng. SE-16, 12 (Dec. 1990), 1344–1351.
Bookmark and Share
 
Automatic Programming (D.1.2 )
 
 
Translator Writing Systems And Compiler Generators (D.3.4 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Automatic Programming": Date
Automatic language implementation
Koskimies K., Paakki J., Ellis Horwood, Upper Saddle River, NJ, 1990. Type: Book (9780130533562)
Jul 1 1992
Description and improvement of iterative program transformations
Souquières J., Finance J. Science of Computer Programming 5(3): 233-264, 1985. Type: Article
Jul 1 1986
An automatic programming system for signal processing applications
Bentz B. Pattern Recognition 18(6): 491-495, 1985. Type: Article
Aug 1 1986
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy