Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * file: modules.h
- * date: July, 2012
- * purpose: header file
- * author: Nick K.
- */
- #include <stdio.h>
- #include <string.h>
- #define n 81 // max size of symbols in chain is 80, 81st is reserved for null-terminator
- struct transl_type {
- char symbol;
- char *symbol_class;
- };
- struct lex_type {
- char lexem[20];
- char *lexem_class;
- };
- void dataInput(char chain[]);
- void translator(char chain[], struct transl_type translChain[]);
- int lexAnalyser(struct transl_type translChain[], struct lex_type lexChain[]);
- int syntax(struct lex_type lexChain[], int lexSize);
- void dataOutput(int res);
Advertisement
Add Comment
Please, Sign In to add comment