This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/examples/dcgs/parsep.lgt

20 lines
366 B
Plaintext
Raw Normal View History

:- protocol(parsep).
:- info([
version is 1.0,
date is 2003/3/17,
author is 'Paulo Moura',
comment is 'Parse protocol for using DCG rules.']).
:- public(parse/2).
:- mode(parse(?list, ?nonvar), zero_or_more).
:- info(parse/2, [
comment is 'Parses a list using the defined set of DCG rules.',
argnames is ['List', 'Result']]).
:- end_protocol.