[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Nov 20 23:12:26 2001 
Subject:Re: Syntactic errors when compiling from a ved buffer (generalised) 
From:Aaron Sloman See text for reply address 
Volume-ID:1011120.01 

[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]

Regarding the previously announced modification to error handling
when compiling in Ved's text buffer, here

>     http://www.cs.bham.ac.uk/research/poplog/lib/newvederror.p

it now turns out that if a compile time error occurs while ved_l1 is
running Ved's text cursor is not left where the error was detected,
unlike compilation using ved_lmr and its derivatives. I don't know
why.

Anyhow, my most recent change to newvederror.p fixes that problem.

So if you use it

(a) the syntactic error messages go into the output buffer not on
the status line, and

(b) it not only shows the line number but moves the Ved cursor to
where the compiler had got to in the source file when the error was
detected.

Sorry to have taken so long to get there.


Another thing that may be found useful, announced previously, is
this file:

    http://www.cs.bham.ac.uk/research/poplog/lib/prwarning.p

This redefines prwarning so that compiler "Declaring variable"
messages also specifies the file and the line number, where
possible. I don't know why it was not done like that originally.
(This has nothing to do with compiling from the Ved buffer.)

Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk   (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html