[m-rev.] State variable syntax transformation

Simon Taylor stayl at cs.mu.OZ.AU
Mon Feb 11 16:43:11 AEDT 2002


On 11-Feb-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Index: lexer.m
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/library/lexer.m,v
> retrieving revision 1.34
> diff -u -r1.34 lexer.m
> --- lexer.m	28 Mar 2000 03:40:38 -0000	1.34
> +++ lexer.m	18 Jan 2002 04:53:38 -0000
> @@ -511,8 +511,9 @@
>  lexer__special_token('|', ht_sep).
>  lexer__special_token(',', comma).
>  lexer__special_token(';', name(";")).
> -lexer__special_token('!', name("!")).
> +% lexer__special_token('!', name("!")).

It would be better to remove the clause.

> Index: builtin.m
> ===================================================================
> @@ -174,11 +174,11 @@
>  % backwards compatibility with Prolog systems.  But of course it only works
>  % if all your cuts are green cuts.
>  
> -:- pred ! is det.
> -
> -:- pred !(T, T).
> -:- mode !(di, uo) is det.
> -:- mode !(in, out) is det.
> +% :- pred ! is det.
> +% 
> +% :- pred !(T, T).
> +% :- mode !(di, uo) is det.
> +% :- mode !(in, out) is det.
>  
>  %-----------------------------------------------------------------------------%

Just remove these (this should be mentioned in the NEWS file).

Simon.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list