Syntactic analyser implementation with HTML conversion code
[TP_AL_C.git] / lexer / global_vars.h
1 #ifndef GLOBAL_VARS_H_
2 #define GLOBAL_VARS_H_
3
4 #include <stdio.h>
5 #include <wchar.h>
6
7 #define TOKEN_MAX 500
8
9 extern FILE *source, *target;
10
11 struct token_s {
12 const char* type;
13 wint_t value[50];
14 };
15 extern struct token_s token[TOKEN_MAX];
16
17 extern wint_t c;
18
19 extern unsigned int tokenFound;
20 extern enum TokenType {
21 MOTCLE,
22 SECTION,
23 SSECTION,
24 NPARA,
25 MOT,
26 FIN
27 } tokenType;
28 extern const char* tokenTypestr[];
29
30 #endif /* GLOBAL_VARS_H_ */