Re: FORMAT/scanf style input parsing
- From: Juho Snellman <jsnell@xxxxxx>
- Date: 18 Aug 2007 03:39:21 GMT
Matthew Swank <akopa_is_very_much_like_my_email@xxxxx> wrote:
Lisp has read. Read is nice enough. However, since at least the time of
fortran many computer languages have supported simple input parsing
based on the same kinds of specifications used to generated formatted
output. Witness C's scanf/printf, fortran's FORMAT, and C#'s
IFormatProvider interface.
Has lisp ever had support for parsing based on some subset of format
control-string language? The reason I ask is that after porting some old
fortran in the recent past, I realize that i kind of miss having a
way to conveniently parse moderately structured input. I know for
extremely simple things there are libs like SPLIT-SEQUENCE, and cl-ppcre
and parser generators for more complicated parsing. However, there is a
sweet spot for parsers like FORMAT (not to mention the symmetry of
notation).
There's an implementation of (SETF FORMAT):
http://www-jcsu.jesus.cam.ac.uk/~csr21/format-setf.lisp
--
Juho Snellman
.
- Follow-Ups:
- Re: FORMAT/scanf style input parsing
- From: Matthew Swank
- Re: FORMAT/scanf style input parsing
- References:
- FORMAT/scanf style input parsing
- From: Matthew Swank
- FORMAT/scanf style input parsing
- Prev by Date: Re: Lot's of new (incompatible) Lisp dialects
- Next by Date: Re: Memory category tracking
- Previous by thread: Re: FORMAT/scanf style input parsing
- Next by thread: Re: FORMAT/scanf style input parsing
- Index(es):
Relevant Pages
|