[mercury-users] Parsers in Mercury

Gilbert Roulot issarlk at wanadoo.fr
Fri Sep 24 05:56:51 AEST 1999


Dan Hazel wrote:
> 
> You have options:
> Either
>     1) Make some grubby annotations outside Mercury (in C perhaps).
> or
>     2) Don't fail.  Don't backtrack.
>        I imagine you're threading a token list through your parser?
>        Instead thread a structure which contains your token list and
>        some other information - something like:
... 
> I've used 2) successfully in the past though
> I must say after all that, 1) looks much more tempting :-)

I already use a structure, so I'll go ahead and try solution 2.


Fergus Henderson :
> Thomas Conway <conway at cs.mu.oz.au> has written a parser using exception
> handling, I think, which he would probably be happy to make available
> if you're interested.

I'll ask Thomas Conway too.


Thank for the info. 

-- 
Gilbert Roulot
--------------------------------------------------------------------------
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