| 
      
      
      From: Robert D. <rob...@gm...> - 2017-08-27 19:49:30
      
     | 
| On 2017-08-26, Helmut Jarausch <jar...@sk...> wrote:
> what's the simplest way to run nparse.lisp on its own (for  
> investigating it) ?
Well, one primitive debugging method is to use the built-in capability
of the Lisp system. E.g. :lisp (trace foo-function) and so on. There may
exist tutorials for Lisp debugging. 
I discovered accidentally that load("foo.mac") and batch("foo.mac") give
different line number info. load("foo.mac") numbers the lines correctly
(to judge by the output of :lisp (symbol-plist '$foo)). However
batch("foo.mac") numbers the lines incorrectly. Tracing NEWLINE in
src/nparse.lisp (i.e.  executing :lisp (trace newline)) shows that
NEWLINE is not called for every line when batch("foo.mac") is executed.
I haven't figured out why that is, perhaps you will discover the reason.
Incidentally the functions of interest are in src/nparse.lisp (NEWLINE,
ADD-LINEINFO) and src/mload.lisp ($BATCH, $LOAD).
best,
Robert Dodier
 |