[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lexical analyzer generators



J. Reeves Hall writes:
> Are there any Lex-style lexical analyzer generators for Scheme?
> 
> Thanks!
> -Reeves

Not a generator as such, but Bigloo
[http://kaolin.unice.fr/~serrano/bigloo/bigloo.html] has extensive
support such reading:

4.8 Regular parsing

Programming languages have poor reading libraries since the lexical
information that can be specified is directly tied to the structure of
the language. For example, in C it's hard to read a rational number
because there is no type rational.  Programs have been written to
circumvent this problem: Lex [Lesk75], for example, is one of them. We
choose to incorporate in Bigloo a set of new functions to assist in
such parsing. The syntax for regular parser of Bigloo 2.0 (the one
described in this document) is not compatible with former Bigloo
versions.


Noel
-- 
Noel Welsh
http://www.dai.ed.ac.uk/~noelw/   noelw@dai.ed.ac.uk