Advertisement
kknndd_

Untitled

May 17th, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. // struct container* parser;
  2.  
  3. // parser = create_container(NULL, COMMAND, create_command("KONIEC", "NUC", ".*[kK][oO][nN][iI][eE][cC]*", 1));
  4.  
  5. // create_container(parser, COMMAND, create_command("QUIT", "NUC", ".*[qQ][uU][iI][tT]*", 1));
  6. // create_container(parser, COMMAND, create_command("EXIT", "NUC", ".*[eE][xX][iI][tT]*", 1));
  7.  
  8.  
  9. // create_container(parser, COMMAND, create_command("SEVER", "NUC", ".*[sS][eE][vV][eE][rR]*", 1));
  10. // // create_container(parser->commands, COMMAND, create_command("S", sever, ".*[sS]*", 1));
  11.  
  12. // create_container(parser, COMMAND, create_command("JUH", "NUC", ".*[jJ][uU][hH]*", 1));
  13. // // create_container(parser->commands, COMMAND, create_command("J", juh, ".*[jJ]*", 1));
  14.  
  15. // create_container(parser, COMMAND, create_command("VYCHOD", "NUC", ".*[vV][yY][cC][hH][oO][dD]*", 1));
  16. // // create_container(parser->commands, COMMAND, create_command("V", vychod, ".*[vV]*", 1));
  17.  
  18. // create_container(parser, COMMAND, create_command("ZAPAD", "NUC", ".*[zZ][aA][pP][aA][dD]*", 1));
  19. // // create_container(parser->commands, COMMAND, create_command("Z", zapad, ".*[zZ]*", 1));
  20.  
  21. // 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));
  22.  
  23. // struct command* result = get_from_container_by_name(parser, "ZAPAD");
  24.  
  25. // if(result == NULL){
  26. // printf("COMMAND : NULL \n");
  27. // } else {
  28. // printf("TOTO > %s \n", result->name);
  29. // }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement