Hello again, In the tutorial for the compiler in ETH Oberon, Andre mentioned OberonErrors.Text. https://en.wikibooks.org/wiki/Oberon/ETH_Oberon/Tutorial/Compiler#Debugging_... The only list of errors I've found in ETHO 2.3.7 is in Oberon.Text. The best explanation I imagine is that OberonErrors.Text existed before the list was incorporated into Oberon.Text. Ideas? Thx, P.L. mobile: +1 778 951 5147 VoIP: +1 604 670 0140 https://en.wikibooks.org/wiki/User:PeterEasthope
Hello again,
In the tutorial for the compiler in ETH Oberon, Andre mentioned OberonErrors.Text.
https://en.wikibooks.org/wiki/Oberon/ETH_Oberon/Tutorial/Compiler#Debugging_...
The only list of errors I've found in ETHO 2.3.7 is in Oberon.Text. The best explanation I imagine is that OberonErrors.Text existed before the list was incorporated into Oberon.Text.
Ideas?
On some ETH Oberon-based systems that use the OP2 compiler (e.g. A2, OberonRevival, Windows PlugIn Oberon) the error messages are stored in a file called *OP2.Errors*. This is referenced in the *ErrorMsg *procedure in
On Sat, Dec 31, 2022 at 9:18 AM <peter@easthope.ca> wrote: the compiler module *OPM*. Regards, Chris Burrows CFB Software https://www.astrobe.com
On Sat, Dec 31, 2022 at 9:18 AM <peter@easthope.ca> wrote:
In the tutorial for the compiler in ETH Oberon, Andre mentioned OberonErrors.Text. https://en.wikibooks.org/wiki/Oberon/ETH_Oberon/Tutorial/Compiler#Debugging_...
The only list of errors I've found in ETHO 2.3.7 is in Oberon.Text. The best explanation I imagine is that OberonErrors.Text existed before the list was incorporated into Oberon.Text.
Ideas?
I guess that indeed OberonErrors.Text predates Oberon.Text. I have an old version of Oberon System (V 1.4 for PC/MS-DOS from 1992) which has a file OberonErrors.Text. This file has 300 Compile-time Error Numbers and 30 Run-time Trap Numbers. Also the Oberon Companion by André Fischer and Johannes L. Marais from 1997 mentions OberonErrors.Text (in section 2.5.1.1 on Compiler error handling). I don't know when the name changed to Oberon.Text or otherwise. In the past the file OberonErrors.Text was more important for programmers than now because the compiler only gave error numbers and no worded description of the error (e.g. the 1992 compiler only gave 'pos 39 err 40'), so you had to look up what error 40 meant ;-( Debugging this way is described in Martin Reiser's The Oberon System (from 1991, on p. 60, section 5.2). Luckily later versions of the Oberon compiler give descriptions of compile time errors. For trapped run-time errors a list of Trap codes is still indispensable. The current list is in Project Oberon (2013) part Applications, p. 50, section 12.7.10 Traps, with only 7 Trap numbers: https://people.inf.ethz.ch/wirth/ProjectOberon/PO.Applications.pdf Hans Klaver
On 2023-01-07 12:43, Hans Klaver wrote:
In the past ... the compiler only gave error numbers...
Those were the days... certainly not ideal, but perhaps appropriate in extremely-resource-constrained systems. And sometimes even that's more than you need. Kind of like having a buddy sitting next to you pointing to the offending line of code and saying, "Hmmm... I don't like the look of that!" and you going, "Oh, yeah, good point, thanks." ;-) Paul
Just a remark to ProjectOberon: If you place the error strings directly in the compiler (instead of an external file), you have to be aware that ORG.maxStrx restricts the string space of one module to 2400 characters. When I enhanced the compiler with new features (eg numeric CASE, improved CONST evaluation…) I had to add more error strings as well. As I didn‘t want to increase macStrx, I shortened/streamlined all error strings in the compiler to make room for more error strings. br Jörg
Am 08.01.2023 um 17:05 schrieb Paul Reed <paulreed@paddedcell.com>:
On 2023-01-07 12:43, Hans Klaver wrote:
In the past ... the compiler only gave error numbers...
Those were the days... certainly not ideal, but perhaps appropriate in extremely-resource-constrained systems.
And sometimes even that's more than you need. Kind of like having a buddy sitting next to you pointing to the offending line of code and saying, "Hmmm... I don't like the look of that!" and you going, "Oh, yeah, good point, thanks." ;-)
Paul -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hans Klaver writes:
On Sat, Dec 31, 2022 at 9:18 AM <peter@easthope.ca> wrote:
In the tutorial for the compiler in ETH Oberon, Andre mentioned OberonErrors.Text. https://en.wikibooks.org/wiki/Oberon/ETH_Oberon/Tutorial/Compiler#Debugging_...
The only list of errors I've found in ETHO 2.3.7 is in Oberon.Text. The best explanation I imagine is that OberonErrors.Text existed before the list was incorporated into Oberon.Text.
Ideas?
I guess that indeed OberonErrors.Text predates Oberon.Text.
I have an old version of Oberon System (V 1.4 for PC/MS-DOS from 1992) which has a file OberonErrors.Text. This file has 300 Compile-time Error Numbers and 30 Run-time Trap Numbers. Also the Oberon Companion by André Fischer and Johannes L. Marais from 1997 mentions OberonErrors.Text (in section 2.5.1.1 on Compiler error handling).
I don't know when the name changed to Oberon.Text or otherwise.
In the past the file OberonErrors.Text was more important for programmers than now because the compiler only gave error numbers and no worded description of the error (e.g. the 1992 compiler only gave 'pos 39 err 40'), so you had to look up what error 40 meant ;-(
There was a text editor extention (ErrorElems, maybe?) for ETH Oberon that took the list of errors produced by the compiler and inserted a clickable element in the error point in the source text position that would expand, inline, to the text of the error. -- Holding on to you like broken glass Every touch cuts deeper than the last I know I should leave But it feels so good to bleed -- We Will Rise Again (Scorpions)
I am using ETH PlugIn Oberon for WindowsTM / Win32 2.5 (18.12.2010) on Windows Vista Version 6.2.9200 Glötzel@GLÖTZEL-PC. It runs actually on Windows 10. The error messages are in "OP2.Errors" (see attachment). Regards, Dieter Am 09.01.2023 um 23:44 schrieb thutt@harp-project.com:
Hans Klaver writes:
On Sat, Dec 31, 2022 at 9:18 AM <peter@easthope.ca> wrote:
In the tutorial for the compiler in ETH Oberon, Andre mentioned OberonErrors.Text. https://en.wikibooks.org/wiki/Oberon/ETH_Oberon/Tutorial/Compiler#Debugging_...
The only list of errors I've found in ETHO 2.3.7 is in Oberon.Text. The best explanation I imagine is that OberonErrors.Text existed before the list was incorporated into Oberon.Text.
Ideas?
I guess that indeed OberonErrors.Text predates Oberon.Text.
I have an old version of Oberon System (V 1.4 for PC/MS-DOS from 1992) which has a file OberonErrors.Text. This file has 300 Compile-time Error Numbers and 30 Run-time Trap Numbers. Also the Oberon Companion by André Fischer and Johannes L. Marais from 1997 mentions OberonErrors.Text (in section 2.5.1.1 on Compiler error handling).
I don't know when the name changed to Oberon.Text or otherwise.
In the past the file OberonErrors.Text was more important for programmers than now because the compiler only gave error numbers and no worded description of the error (e.g. the 1992 compiler only gave 'pos 39 err 40'), so you had to look up what error 40 meant ;-(
There was a text editor extention (ErrorElems, maybe?) for ETH Oberon that took the list of errors produced by the compiler and inserted a clickable element in the error point in the source text position that would expand, inline, to the text of the error.
-- ____________________________________ Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72
participants (7)
-
Chris Burrows -
Dieter -
Hans Klaver -
Joerg -
Paul Reed -
peter@easthope.ca -
thutt@harp-project.com