Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
From gpc-owner@gnu.de Tue Nov 5 05:48:16 2002 Received: from mail.ncifcrf.gov ([::ffff:129.43.100.100]) by adele.gerwinski.de with esmtp (Exim 3.12 #1 (Debian)) id 188vdO-0000GZ-00 for <gpc@gnu.de>; Tue, 05 Nov 2002 05:48:14 +0100 Received: from strawberry.ncifcrf.gov (strawberry.NCIFCRF.GOV [129.43.6.74]) by mail.ncifcrf.gov (8.11.3/8.11.3) with ESMTP id gA54lFf18847 for <gpc@gnu.de>; Mon, 4 Nov 2002 23:47:15 -0500 (EST) Received: (from toms@localhost) by strawberry.ncifcrf.gov (8.9.3+Sun/8.9.3) id XAA27104 for gpc@gnu.de; Mon, 4 Nov 2002 23:47:14 -0500 (EST) From: Tom Schneider <toms@ncifcrf.gov> Message-Id: <200211050447.XAA27104@strawberry.ncifcrf.gov> Subject: Re: GPC error messages In-Reply-To: <E187pla-0007pN-00@adele.gerwinski.de> from "gpc-owner@gnu.de" at "Nov 2, 2002 05:20:10 am" To: gpc@gnu.de (gpc) Date: Mon, 4 Nov 2002 23:47:14 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL34 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200211/10 X-Sequence-Number: 969 Frank: > > Here is a bad chunk of code: > > > > ri := ri + > > end; > > > > This is what GPC has to say about it: > > > > ridi.p:1531: parse error before `End' > > > > Here is what the Sun Pascal compiler has to say about it: > > > > pc0: WorkShop Compilers 4.2 01/04/00 Pascal 4.2 patch 104632-11 > > Fri Nov 1 02:52:33 2002 ridi.p: > > 1531 end; > > E 18480----------------^--- Inserted identifier > > > > I always find the Sun display much easier to interpret instantly. It > > would be nice to have GPC show the line and show the point of the > > error. > > GPC's error messages (which follow the same standard as most GNU > programs) are more targeted towards automatic parsing. Yes, that's good. > If run call > GPC from a user interface that supports it (e.g., PENG ... excuse > the little plug ;-), Noted! > but I guess also RHIDE, Emacs, etc.), it will > show the source position. > > But if you prefer working on the command-line, here's a little > script to convert the message format. You have to pipe the error > messages through it, e.g. > > sh/bash: > > gpc <options> foo.pas 2>&1 | gnumsg2spc > > csh/tcsh: > > gpc <options> foo.pas |& gnumsg2spc > > DJGPP: > > redir -eo gpc <options> foo.pas | sh gnumsg2spc Thanks for the explanation. I was not able to locate gnumsg2spc on the web with google though. Where is it? > Another issue is that GPC's messages don't include the column > position. Unfortunately, that's hard to achieve with the current > design of the preprocessor and lexer. But a reimplementation of > those is planned, and then it will be possible I hope. Great! Tom Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu (use only if first address fails) http://www.lecb.ncifcrf.gov/~toms/
Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | GPC error messages | 5 Nov 2002, 19:52:23 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).