link-grammar-5.8.0/link-grammar/dict-file/read-dict.c
/**
 * make_dir_connector() -- make a single node for a connector
 * that is a + or a - connector.
 *
 * Assumes the current token is the connector.
 */
- make a single node for a connector
that is a + or a - connector.

Assumes the current token is the connector.
- make a single node for a connector that is a + or a - connector . Assumes the current token is the connector .
static Exp * make_dir_connector(Dictionary dict, int i)
{
	Exp* n = Exp_create(dict->Exp_pool);
	char *constring;
	n->dir = dict->token[i];
	dict->token[i] = '\0';   
	if (dict->token[0] == '@')
	{
		constring = dict->token+1;
		n->multi = true;
	}
	else
	{
		constring = dict->token;
		n->multi = false;
	}
	n->condesc = condesc_add(&dict->contable,
	                         string_set_add(constring, dict->string_set));
	if (NULL == n->condesc) return NULL; 
	n->type = CONNECTOR_type;
	n->operand_next = NULL; 
	n->cost = 0.0;
	return n;
}
static Exp * make_dir_connector ( Dictionary dict , int i ) { Exp * n = Exp_create ( dict -> Exp_pool ) ; char * constring ; n -> dir = dict -> token [ i ] ; dict -> token [ i ] = ' \0 ' ; if ( dict -> token [ 0 ] == ' ' ) { constring = dict -> token + 1 ; n -> multi = true ; } else { constring = dict -> token ; n -> multi = false ; } n -> condesc = condesc_add ( & dict -> contable , string_set_add ( constring , dict -> string_set ) ) ; if ( NULL == n -> condesc ) return NULL ; n -> type = CONNECTOR_type ; n -> operand_next = NULL ; n -> cost = 0.0 ; return n ; }
make_dir_connector() -- make a single node for a connector
 that is a + or a - connector.
make_dir_connector () -- make a single node for a connector that is a + or a - connector .
/* get rid of the + or - */ /* Table ovf */ /* unused, but accessed by copy_Exp() and some more */