phrase(Ruleset, Input, Rest)
True if the list Input
can be parsed using the specified non-terminal Ruleset
. The list Rest
is what remains of the list Input
after parsing succeeded.
phrase(+callable, ?list, ?list)
instantiation_error
type_error(callable, Ruleset)
type_error(list, Input)
type_error(list, Rest)
permission_error(access, private_predicate, Pred)
permission_error(access, protected_predicate, Pred)
existence_error(predicate_declaration, Pred)
| ?- sentence::phrase(noun_phrase, [the, girl, likes, the, boy], Rest). Rest = [likes, the, boy] yes