robert.dodier at gmail.com
Fri May 25 19:37:43 CDT 2007
On 5/25/07, Stavros Macrakis <macrakis at alum.mit.edu> wrote:
> Also, if it's going to be useful as a general token scanner, it
> needs some way of telling the calling program how far it's gotten in the
> argument string, like Lisp's:
> (read-from-string "12 / 19") => 12 3
> (read-from-string "12/19") => 12/19 5
> but of course we don't have multiple-value-return.
If the argument is a stream, then the position within the input buffer
is part of the stream state. Actually I've been meaning to expand the
numericalio functions to read/write streams as well as files;
in that case maybe read_list(make_stream_from_string("foo bar"))
would be an acceptable Maxima string parser.
More information about the Maxima