[m-dev.] trivial diff: parenthesize `instance' and `typeclass'

Simon Taylor stayl at cs.mu.OZ.AU
Tue Oct 31 13:25:10 AEDT 2000


> compiler/mercury_to_mercury.m:
> 	Add `typeclass' and `instance' as mercury_unary_prefix_ops,
> 	to ensure that we parenthesize them when necessary.
 
> Index: compiler/mercury_to_mercury.m
> ===================================================================
> @@ -2966,6 +2966,7 @@
>  mercury_unary_prefix_op("include_module").
>  mercury_unary_prefix_op("impure").
>  mercury_unary_prefix_op("insert").
> +mercury_unary_prefix_op("instance").
>  mercury_unary_prefix_op("inst").
>  mercury_unary_prefix_op("lib").
>  mercury_unary_prefix_op("listing").

Can't this be done using ops__lookup_prefix_op, to avoid the
double maintenance problem?

Simon.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list