<div dir="auto">Also I know about (but never used) Eclector <a href="https://github.com/robert-strandh/Eclector">https://github.com/robert-strandh/Eclector</a> which I think can do what you're asking for.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019, 18:30 Luís Oliveira <<a href="mailto:luismbo@gmail.com">luismbo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jun 26, 2019 at 5:19 PM Alexandre Rademaker<br>
<<a href="mailto:arademaker@gmail.com" target="_blank" rel="noreferrer">arademaker@gmail.com</a>> wrote:<br>
> 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?<br>
<br>
One way to do it is to define a stream that keeps track of the current<br>
line. Here's an example of such a stream:<br>
<<a href="https://github.com/cl-stream/cl-stream/blob/master/line-tracking-stream.lisp" rel="noreferrer noreferrer" target="_blank">https://github.com/cl-stream/cl-stream/blob/master/line-tracking-stream.lisp</a>>.<br>
<br>
-- <br>
Luís Oliveira<br>
<a href="http://kerno.org/~luis/" rel="noreferrer noreferrer" target="_blank">http://kerno.org/~luis/</a><br>
<br>
</blockquote></div>