From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from netcomsv.netcom.com ([192.100.81.101]) by hawkwind.utcs.toronto.edu with SMTP id <2738>; Thu, 8 Apr 1993 12:51:49 -0400 Received: from netapp.UUCP by netcomsv.netcom.com with UUCP (4.1/SMI-4.1) id AA00236; Thu, 8 Apr 93 09:51:47 PDT Received: from ghoti.netapp by netapp.netapp.com (4.1/SMI-4.1) id AA11092; Thu, 8 Apr 93 01:28:14 PDT Date: Thu, 8 Apr 1993 04:28:14 -0400 From: byron@netapp.com (Byron Rakitzis) Message-Id: <9304080828.AA11092@netapp.netapp.com> To: rc@hawkwind.utcs.toronto.edu Subject: re. a minor but annoying bug Well, the reason for the bug is that rc does not annotate the parse-tree with line numbers the way a C compiler might. The error printer makes a stab at what the line number is, by printing the number of newlines read so far. (This trick works ok for syntax errors.) Therefore, an error raised anywhere inside a while loop will print the line number of the close-brace of the while loop. I realize this is ugly, but a fix for this problem is more effort than I can or want to put into rc right now.