[mercury-users] syntax across languages

Ralph Becket rafe at cs.mu.OZ.AU
Mon Jun 3 10:14:09 AEST 2002


Fergus Henderson, Sunday,  2 June 2002:
> On 01-Jun-2002, Pixel <pixel at mandrakesoft.com> wrote:
> > More specifically, about Mercury:
> > 
> > http://merd.net/pixel/language-study/syntax-across-languages-per-language/Mercury.html
> > 
> > Would someone be so kind to give me some/the missing entries? :-)
> 
> Here's a few.
> 
> Commenting:
> 	multi-line comments (not nestable): /* ... */
> 	single-line comments: % ... <newline>
> 
> Comparison: < > =< =>

s/=>/>=/

> Comparison (returns 3 values): compare
> Force garbage collection: garbage_collect
> 
> Function call: f(X)

where `f' may be a variable or expression with an higher order value.

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