+Head
-->
+Body
A possible form for Head is Body. Used primarily in grammar rules.
The formal description of grammar heads and grammar bodies is spelled out in ref-syn-syn-sen.
Head and
Body are translated into lists of Prolog terms by
expand_term/2
.
context_error
Cannot call -->/2
as a predicate
See examples in ref-gru-exa and ref-gru-tra.
expand_term/2
, 'C'/3
,
term_expansion/2
, phrase/[2,3]
ref-gru