Results 1 -
2 of
2
RE2C - A More Versatile Scanner Generator
- ACM Lett. Program. Lang. Syst
, 1994
"... It is usually claimed that lexical analysis routines are still coded by hand, despite the widespread availability of scanner generators, for efficiency reasons. While efficiency is a consideration, there exist freely available scanner generators such as GLA [7] that can generate scanners that are ..."
Abstract
-
Cited by 1 (0 self)
- Add to MetaCart
It is usually claimed that lexical analysis routines are still coded by hand, despite the widespread availability of scanner generators, for efficiency reasons. While efficiency is a consideration, there exist freely available scanner generators such as GLA [7] that can generate scanners that are faster than most hand-coded ones. However, most generated scanners are tailored for a particular environment, and retargetting these scanners to other environments, if possible, is usually complex enough to make a hand-coded scanner more appealing. In this paper we describe RE2C, a scanner generator that not only generates scanners which are faster (and usually smaller) than those produced by any other scanner generator known to the authors, including GLA, but also adapt easily to any environment. Categories and Subject Descriptors: D.3.2 [Programming Languages]: Language Classifications -- specialized application languages; D.3.4 [Programming Languages]: Processors General Terms: Al...

