FORMAT/scanf style input parsing



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.

.



Relevant Pages

  • Re: FORMAT/scanf style input parsing
    ... fortran many computer languages have supported simple input parsing ... Has lisp ever had support for parsing based on some subset of format ...
    (comp.lang.lisp)
  • git-x86 broken on 32bit
    ... x86: AMD Thermal Interrupt Support ... Parsing all Control Methods: ... Kernel panic - not syncing: Attempted to kill the idle task! ...
    (Linux-Kernel)
  • Handling fractions of seconds in strftime/strptime
    ... Python's date parsing is based ... on strptimewhich can't handle fractions of seconds. ... I realize that other languages may not base their current time ... seconds or adding a new format specifier like "%F" to handle this ...
    (comp.lang.perl.misc)
  • Handling fractions of seconds in strftime/strptime
    ... Python's date parsing is based ... on strptimewhich can't handle fractions of seconds. ... I realize that other languages may not base their current time ... seconds or adding a new format specifier like "%F" to handle this ...
    (comp.lang.python)
  • Handling fractions of seconds in strftime/strptime
    ... Python's date parsing is based ... on strptimewhich can't handle fractions of seconds. ... I realize that other languages may not base their current time ... seconds or adding a new format specifier like "%F" to handle this ...
    (comp.lang.tcl)