Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.kei.com!bloom-beacon.mit.edu!gatech!howland.reston.ans.net!EU.net!Germany.EU.net!eso.org!Munich.Germany.EU.net!ecrc!news
From: micha@ecrc.de (Micha Meier)
Subject: Re: Prolog syntax
Message-ID: <D7y0HL.9Cv@ecrc.de>
Sender: news@ecrc.de
Reply-To: micha@ecrc.de
Organization: European Computer-Industry Research Centre
References: <9512019.12772@mulga.cs.mu.OZ.AU>
Date: Tue, 2 May 1995 08:48:56 GMT
Lines: 35

In article 12772@mulga.cs.mu.OZ.AU, zs@munta.cs.mu.OZ.AU (Zoltan Somogyi) writes:
> 
> As an example, let me show you a syntax error I just got. This is the
> predicate involved:
> 
...

> 
> Can you spot the error? If yes, how long did it take you? Perhaps it is my
> eyesight that is to blame, but I needed about three minutes to find the
> error (mercury_compile__maybe_dump_hlds(HLDS, "3", "modecheck") is terminated
> with a dot, not a comma; a difference of a couple of pixels). Neither Mercury's
> nor NU-Prolog's error message was all that helpful beyond giving me the name
> of the predicate that had the error.


The error message I get is

file aa, line 13: syntax error: unexpected fullstop
| 		mercury_compile__maybe_dump_hlds(HLDS, "3", "modecheck").
|                                                                       ^ here

so I think the problem is to improve the parser's ability of reporting errors.

--Micha



---
Micha Meier			------------------------------------------------
ECRC, Arabellastr. 17		The opinions expressed above are private
D-81925 Munich 81		and may not reflect those of my employer.
micha@ecrc.de, Tel. +49-89-92699-108, Fax  +49-89-92699-170


