t1nman

modules.h

Jul 19th, 2012
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. /*
  2.  *  file:       modules.h
  3.  *  date:       July, 2012
  4.  *  purpose:    header file
  5.  *  author:     Nick K.
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <string.h>
  10. #define n 81 // max size of symbols in chain is 80, 81st is reserved for null-terminator
  11.  
  12. struct transl_type {
  13.     char symbol;
  14.     char *symbol_class;
  15. };
  16.  
  17. struct lex_type {
  18.     char lexem[20];
  19.     char *lexem_class;
  20. };
  21.  
  22.  
  23.  
  24. void dataInput(char chain[]);
  25. void translator(char chain[], struct transl_type translChain[]);
  26. int lexAnalyser(struct transl_type translChain[], struct lex_type lexChain[]);
  27. int syntax(struct lex_type lexChain[], int lexSize);
  28. void dataOutput(int res);
Advertisement
Add Comment
Please, Sign In to add comment