[mercury-users] Custom declarations and preprocessors.

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Apr 15 22:34:01 AEST 2000


On 14-Apr-2000, Peter Schachte <schachte at cs.mu.OZ.AU> wrote:
> On Fri, Apr 14, 2000 at 03:31:45PM +1000, Tyson Dowd wrote:
> > Why?  Mostly because it simplifies implementing various things and
> > allows a much smoother path towards integration into the language.
> 
> You are ignoring another implementation option:  give the Mercury tokenizer
> and parser an optional argument to tell it to hold onto comments.  The
> compiler would probably not use this feature, but other tools could.  I
> think this would give you most of the advantages of your approach, as well
> as most of the advantages of using comments.

This is much more difficult to implement that having the compiler
just ignore certain declarations.  (It would also probably reduce the
efficiency of the parser a little.)

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list