link-grammar-5.8.0/link-grammar/parse/prune.c
/** Validate that the connectors needed in order to create a
 *  link that matches pp_link, are all found in the sentence.
 *  The sentence's connectors are in the cms table.
 */
Validate that the connectors needed in order to create a
link that matches pp_link, are all found in the sentence.
The sentence's connectors are in the cms table.
Validate that the connectors needed in order to create a link that matches pp_link are all found in the sentence . The sentence ' s connectors are in the cms table .
static bool all_connectors_exist(multiset_table *cmt, const char *pp_link)
{
	ppdebug("check PP-link=%s\n", pp_link);
	const char *s;
	for (s = pp_link; isupper(*s); s++) {}
	do
	{
		ppdebug("subscript at %d\n", (int)(s-pp_link-strspn(pp_link, AtoZ)));
		if (*s == '#') continue;
		if (!match_in_cms_table(cmt, pp_link, s)) return false;
	}
	while (*s++ != '\0' && *s != '\0'); 
	return true;
}
static bool all_connectors_exist ( multiset_table * cmt , const char * pp_link ) { ppdebug ( " \n " , pp_link ) ; const char * s ; for ( s = pp_link ; isupper ( * s ) ; s ++ ) { } do { ppdebug ( " \n " , ( int ) ( s - pp_link - strspn ( pp_link , AtoZ ) ) ) ; if ( * s == ' ' ) continue ; if ( ! match_in_cms_table ( cmt , pp_link , s ) ) return false ; } while ( * s ++ != ' \0 ' && * s != ' \0 ' ) ; return true ; }
Validate that the connectors needed in order to create a
  link that matches pp_link, are all found in the sentence.
Validate that the connectors needed in order to create a link that matches pp_link are all found in the sentence .
/* The first iteration of the next loop handles the special case
	 * which occurs if there were 0 subscripts. */ /* while characters still exist */