Logtalk reference manual
Built-in non-terminal: phrase//1

phrase//1

Description

phrase(NonTerminal)

This non-terminal takes a non-terminal or a grammar rule body and parses it using the current implicit list of tokens. A common use is to wrap what otherwise would be a naked variable in a grammar rule body.

Template and modes

phrase(+callable)

Errors

NonTerminal is a variable:
instantiation_error
NonTerminal is neither a variable nor a callable term:
type_error(callable, NonTerminal)

Examples

See also

call//1-N, phrase/2, phrase/3