phrase/3
phrase(Ruleset, Input, Rest)True if the list
Input
can be parsed using the specifiedRuleset
. The listRest
is what remains of the listInput
after parsing succeeded.
phrase(+callable, ?list, ?list)
- Ruleset is a variable:
instantiation_error
- Ruleset is neither a variable nor a callable term:
type_error(callable, Ruleset)
- Input is neither a variable nor a proper list:
type_error(list, Input)
- Rest is neither a variable nor a proper list:
type_error(list, Rest)
(none)