[m-rev.] diff/for review: more library improvements for caribou

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Jan 7 13:27:01 AEDT 2005


On 06-Jan-2005, Michael Day <mikeday at yeslogic.com> wrote:
> Will this scanner generator be included in the extras distribution?

Yes, when it is finished.

> If so, how does it differ from lex?

In two kinds of ways. One kind is the kind forced by the pure nature of
Mercury. For example, if an action in lex wants to access global state,
it can just do so, in caribou (my lex lookalike) you have to pass a state
variable argument pair for each such piece of global state. The second
kind is syntactic. For example, Mercury uses % for comments. Using %%
to separate sections of a specification wouldn't work, so caribou uses
##declarations, ##rules and ##includes instead.

However, in spirit and in most details caribou is very much like lex.

Zoltan.
--------------------------------------------------------------------------
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