Author(s): Daniel Cabeza.
Version: 1.11#87 (2003/12/21, 2:9:27 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
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
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.