[comp.sys.atari.st] Line/char number for PD-Modula2 error files

jmlang@water.waterloo.edu (Jerome M Lang) (06/16/89)

Hello,
  Has anybody figured out how to use the error files that the
PD-Modula2 generates? I presume that the editor that is mentionned
in the menu should be able to handle these files; however, no
editors ever came with the distribution.  I can't quite figure out
the format used to embed the line/position of the error. I just
know that if I insert a blank line/space before an error, then
something changes in the error file.

  Sigh, it is so easy to write human readable error files. Not everybody
wants to use the same editors.

  If the info is in the German documentation, then please enlighten me.
(Even though I am fluent in 2 languages [French/English], and know a
little bit about other ones as well, German is not in my repertoire).

  Merci d'avance,

piet@cs.ruu.nl (Piet van Oostrum) (06/16/89)

In article <2428@water.waterloo.edu>, jmlang@water (Jerome M Lang) writes:

 `  Has anybody figured out how to use the error files that the
 `PD-Modula2 generates? I presume that the editor that is mentionned
 `in the menu should be able to handle these files; however, no
 `editors ever came with the distribution.  I can't quite figure out
 `the format used to embed the line/position of the error. I just
 `know that if I insert a blank line/space before an error, then
 `something changes in the error file.
 `
The line/char number uses the 'LED-digits' in the ATARI character set.
Apparently they have an editor that recognizes these. If you don't know
what that means: it is in decimal, where the character representation is:

0x10 -> '0'
0x11 -> '1'

I have written an intermediate program 'editor.prg', that I posted some
time ago. I have improved this to convert the line/char number to normal
ASCII chars. I will post this tomorrow.

By the way, this is not in the docs, I just found this by reading the error
file with the program 'memfile 1.4'
-- 
Piet van Oostrum, Dept of Computer Science, University of Utrecht
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)