Re: reading s-expressions from a file
Alexandre, be careful with Lisp control characters embedded - back quotes, commas etc. Jack Harper Secure Outcomes Inc Evergreen, Colorado USA At 10:27 AM 6/26/2019, LuÃs Oliveira wrote:
On Wed, Jun 26, 2019 at 5:19 PM Alexandre Rademaker <arademaker@gmail.com> wrote:
The âreadâ function makes really easy to read a bunch of s-expressions from a file, but how can I keep track of the line number where the expressions were in the file?
One way to do it is to define a stream that keeps track of the current line. Here's an example of such a stream: <https://github.com/cl-stream/cl-stream/blob/master/line-tracking-stream.lisp>.
-- LuÃs Oliveira http://kerno.org/~luis/
---------------------------------------------------------------------------------- Jack Harper, President Secure Outcomes Inc 2942 Evergreen Parkway, Suite 300 Evergreen, Colorado 80439 USA 303.670.8375 303.670.3750 (fax) http://www.secureoutcomes.net for Product Info.
participants (1)
-
Jack Harper