[mercury-users] Accessing global state in moose
Ralph Becket
rafe at cs.mu.OZ.AU
Tue Feb 24 11:17:24 AEDT 2004
obo at ruk.cuni.cz, Tuesday, 24 February 2004:
> On Tue, 24 Feb 2004, Ralph Becket wrote:
> > Can you thread Global through the productions? For example,
> >
> > exprn(Num, Global) ---> exprn(A), [+], term(B), { Num = A + B + Global }.
>
> AFAIK no. I've tried it, but moose expects all the arguments of the
> productions to be output arguments. There is no mode line for productions.
>
> It's a pity that moose is that immature, because it's very useful for me
> and I heavily rely on it (even with the limitations it has, for example
> the lambda productions are implemented errorneously). I've tried to
> understand moose's code several times, but I always failed. :-(
Hmm, maybe I should finish up the work I did on a packrat parser...
--------------------------------------------------------------------------
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