Author(s): Daniel Cabeza.
Version: 1.9#302 (2004/2/16, 18:48:1 CET)
This module implements the Definite clause grammars (expansion).
dcg_expansion
)dcg_expansion
)
phrase(Phrase, List)
Like phrase(Phrase,List,[])
.
Meta-predicate with arguments: phrase(goal,?)
.
Meta-predicate with arguments: phrase(goal,?,?)
.
Usage: phrase(+Phrase, ?List, ?Remainder)
List
is a phrase of type Phrase
(according to the current grammar rules), where Phrase
is either a non-terminal or more generally a grammar rule body. Remainder
is what remains of the list after a phrase has been found.
phrase(+Phrase,?List,?Remainder)
may not conform the functionality documented.
(doc_props:doc_incomplete/1
)
Performs the code expansion of source clauses that use DCGs.
Go to the first, previous, next, last section, table of contents.