FORMAT/scanf style input parsing
- From: Matthew Swank <akopa_is_very_much_like_my_email@xxxxx>
- Date: Fri, 17 Aug 2007 18:57:57 -0500
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).
Just curious,
Matt
--
"You do not really understand something unless you
can explain it to your grandmother." - Albert Einstein.
.
- Follow-Ups:
- Re: FORMAT/scanf style input parsing
- From: Juho Snellman
- Re: FORMAT/scanf style input parsing
- From: Andrew Philpot
- Re: FORMAT/scanf style input parsing
- Prev by Date: Re: NYC LOCAL: Tuesday 14 August 2007 Lisp NYC: Perry Metzger on Otter, the new salty slick whiskered snow-bellying programming system
- Next by Date: Re: Lot's of new (incompatible) Lisp dialects
- Previous by thread: Re: Minim compiler as an OCaml macro
- Next by thread: Re: FORMAT/scanf style input parsing
- Index(es):
Relevant Pages
|