Fix the syntactic analyzer for real.
[TP_AL_C.git] / lexer / global_vars.h
CommitLineData
9ed84d89
JB
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
9extern FILE *source, *target;
10
11struct token_s {
12 const char* type;
13 wint_t value[50];
14};
15extern struct token_s token[TOKEN_MAX];
16
17extern wint_t c;
15ad4b5a 18extern wint_t tokenValue[50];
9ed84d89
JB
19
20extern unsigned int tokenFound;
21extern enum TokenType {
22 MOTCLE,
23 SECTION,
24 SSECTION,
25 NPARA,
26 MOT,
27 FIN
28} tokenType;
29extern const char* tokenTypestr[];
30
31#endif /* GLOBAL_VARS_H_ */