[mercury-users] Proposed change in lex interface

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Mar 2 14:57:07 AEDT 2007


On Fri, 2 Mar 2007, Ondrej Bojar wrote:

> I'd like to ask if there would be any severe objections against changing the 
> interface to lex library as included in the mercury extras.
>
> Some years ago I adapted a copy of lex so that the context returned would be 
> not just byte offset but also the line number:
>
> :- type context
>    ==      {offset, lineno}.

I would prefer

 	:- type context
 		---> context(offset, lineno).

to the above.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list