phrase(NonTerminal, Input)
True if the list Input can be parsed using the specified non-terminal NonTerminal. This method also accepts grammar rule bodies in the first argument (with the limitation that cuts are only supported in local calls).
phrase(+callable, ?list)
instantiation_errortype_error(callable, NonTerminal)type_error(list, Input)permission_error(access, private_non_terminal, NonTerminal)permission_error(access, protected_non_terminal, NonTerminal)existence_error(non_terminal_declaration, NonTerminal)| ?- sentence::phrase(sentence, [the, girl, likes, the, boy]). yes | ?- calculator::phrase(expr(Value), "1+2-3*4"). Value = -9 yes