Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // struct container* parser;
- // parser = create_container(NULL, COMMAND, create_command("KONIEC", "NUC", ".*[kK][oO][nN][iI][eE][cC]*", 1));
- // create_container(parser, COMMAND, create_command("QUIT", "NUC", ".*[qQ][uU][iI][tT]*", 1));
- // create_container(parser, COMMAND, create_command("EXIT", "NUC", ".*[eE][xX][iI][tT]*", 1));
- // create_container(parser, COMMAND, create_command("SEVER", "NUC", ".*[sS][eE][vV][eE][rR]*", 1));
- // // create_container(parser->commands, COMMAND, create_command("S", sever, ".*[sS]*", 1));
- // create_container(parser, COMMAND, create_command("JUH", "NUC", ".*[jJ][uU][hH]*", 1));
- // // create_container(parser->commands, COMMAND, create_command("J", juh, ".*[jJ]*", 1));
- // create_container(parser, COMMAND, create_command("VYCHOD", "NUC", ".*[vV][yY][cC][hH][oO][dD]*", 1));
- // // create_container(parser->commands, COMMAND, create_command("V", vychod, ".*[vV]*", 1));
- // create_container(parser, COMMAND, create_command("ZAPAD", "NUC", ".*[zZ][aA][pP][aA][dD]*", 1));
- // // create_container(parser->commands, COMMAND, create_command("Z", zapad, ".*[zZ]*", 1));
- // create_container(parser, COMMAND, create_command("ROZHLIADNI SA", "Príkaz vypíše aktuálne informácie o miestnosti, v ktorej sa hráč práve nachádza.", ".*[rR][oO][zZ][hH][lL][iI][aA][dD][nN][iI][ ][sS][aA]*", 1));
- // struct command* result = get_from_container_by_name(parser, "ZAPAD");
- // if(result == NULL){
- // printf("COMMAND : NULL \n");
- // } else {
- // printf("TOTO > %s \n", result->name);
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement