ext/dictionary.c
void
rlink_init_dict(void)
{
#ifdef FOR_RDOC
	rlink_mLinkParser = rb_define_module( "LinkParser" );
	
	/* An exception class for errors raised from the LinkParser library */
	rlink_eLpError = rb_define_class_under( rlink_mLinkParser, "Error", rb_eRuntimeError );
#endif

	rlink_cDictionary = rb_define_class_under( rlink_mLinkParser, "Dictionary",
	 	rb_cObject );
	
	rb_define_alloc_func( rlink_cDictionary, rlink_dict_s_alloc );
	rb_define_method( rlink_cDictionary, "initialize", rlink_dict_initialize, -1 );

	rb_define_method( rlink_cDictionary, "max_cost", rlink_get_max_cost, 0 );
	rb_define_method( rlink_cDictionary, "parse", rlink_parse, -1 );

	rb_define_attr( rlink_cDictionary, "options", 1, 0 );
}
/* 
 * Document-class: LinkParser::Dictionary
 * 
 * A Dictionary is the programmer's handle on the set of word definitions that defines the
 * grammar. A user creates a Dictionary from a grammar file and post-process knowledge
 * file, and then creates all other objects through it.
 */


A Dictionary is the programmer's handle on the set of word definitions that defines the
grammar. A user creates a Dictionary from a grammar file and post-process knowledge
file, and then creates all other objects through it.
A Dictionary is the programmer ' s handle on the set of word definitions that defines the grammar . A user creates a Dictionary from a grammar file and post - process knowledge file and then creates all other objects through it .
void
rlink_init_dict(void)
{
#ifdef FOR_RDOC
	rlink_mLinkParser = rb_define_module( "LinkParser" );
	rlink_eLpError = rb_define_class_under( rlink_mLinkParser, "Error", rb_eRuntimeError );
#endif
	rlink_cDictionary = rb_define_class_under( rlink_mLinkParser, "Dictionary",
	 	rb_cObject );
	rb_define_alloc_func( rlink_cDictionary, rlink_dict_s_alloc );
	rb_define_method( rlink_cDictionary, "initialize", rlink_dict_initialize, -1 );
	rb_define_method( rlink_cDictionary, "max_cost", rlink_get_max_cost, 0 );
	rb_define_method( rlink_cDictionary, "parse", rlink_parse, -1 );
	rb_define_attr( rlink_cDictionary, "options", 1, 0 );
}
void rlink_init_dict ( void ) { #ifdef FOR_RDOC rlink_mLinkParser = rb_define_module ( " " ) ; rlink_eLpError = rb_define_class_under ( rlink_mLinkParser , " " , rb_eRuntimeError ) ; #endif rlink_cDictionary = rb_define_class_under ( rlink_mLinkParser , " " , rb_cObject ) ; rb_define_alloc_func ( rlink_cDictionary , rlink_dict_s_alloc ) ; rb_define_method ( rlink_cDictionary , " " , rlink_dict_initialize , -1 ) ; rb_define_method ( rlink_cDictionary , " " , rlink_get_max_cost , 0 ) ; rb_define_method ( rlink_cDictionary , " " , rlink_parse , -1 ) ; rb_define_attr ( rlink_cDictionary , " " , 1 , 0 ) ; }
Document-class: LinkParser::Dictionary
Document - class : LinkParser :: Dictionary
/* An exception class for errors raised from the LinkParser library */