phrase(Ruleset, Input)
True if the list Input
can be parsed using the specified non-terminal Ruleset
.
phrase(+callable, ?list)
instantiation_error
type_error(callable, Ruleset)
type_error(list, Input)
permission_error(access, private_predicate, Pred)
permission_error(access, protected_predicate, Pred)
existence_error(predicate_declaration, Pred)
| ?- sentence::phrase(sentence, [the, girl, likes, the, boy]). yes | ?- calculator::phrase(expr(Value), "1+2-3*4"). Value = -9 yes