[m-users.] DCGs: equivalent of Prolog's phrase/2 and phrase/3 predicates?

Volker Wysk post at volker-wysk.de
Sun May 9 01:14:26 AEST 2021


Hi!

In Prolog, it's the rule to call a DCG rule via the "phrase" predicate. It's
not clear what it does. In Mercury, the normal way seems to be to directly
call the DCG rule. Since a DCG rule is just a regular predicate in both
cases, this ought to work.

Is there an equivalent for Prolog's "phrase" in Mercury?

Bye,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20210508/b16341a4/attachment.sig>


More information about the users mailing list