parse_command.c
skylib_fluffos_v3/mudlib/secure/master/parse_command.c · 939 B
From the archive skylib_fluffos_v3.zip
Download the archive « Back to the archive contents
/* -*- LPC -*- */
/*
* Default language functions used by parse_command() in non -o mode
*/
string *parse_command_id_list() {
return ({ "one", "thing" });
} /* parse_command_id_list() */
string *parse_command_plural_id_list() {
return ({ "ones", "things", "them" });
} /* parse_command_plural_id_list() */
string *parse_command_adjectiv_id_list() {
return ({ "the", "a", "an" });
} /* parse_command_adjectiv_id_list() */
string *parse_command_prepos_list() {
return ({ "in", "on", "at", "along", "upon", "by", "under", "behind",
"with",
"beside", "into", "onto", "inside", "within", "from" });
} /* parse_command_prepos_list() */
string parse_command_all_word() {
return "all";
} /* parse_command_all_word() */
string *query_word_list(string word) {
switch (word) {
case "preposition" :
return parse_command_prepos_list();
default :
return 0;
}
} /* query_word_list() */