[mercury-users] Handy Programming tool for Mercury.

Lee Naish lee at cs.mu.OZ.AU
Fri May 21 13:16:18 AEST 1999


In message <19990520093348079.AAA250 at ZAPHOD>Paul wrote:
>
>I've got a tool which also does something similar (written
>in mercury and called mmproto which I've been using for
>approx. 2 years or so). The previous version looked for
>
>:- type record ---> record(Type1,Type1,Type2).

This is certainly the way I would do it (but I would probably use
Prolog).  When you are able to choose the format of the input it often
makes things *much* easier if you choose a format which can be converted
from a string to a (Prolog) term using read/1 (or similar in Mercury).
Terms are much nicer data structures for manipulation than strings,
especially when the output is essentially a bunch of terms.

Of course there are times when we don't have control over the input,
which makes tools for string manipulation desirable.

	lee
--------------------------------------------------------------------------
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