Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 1 | #ifndef T_MAIN_H |
2 | #define T_MAIN_H | ||||
3 | |||||
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame^] | 4 | /** |
5 | * Defined in the flex library | ||||
6 | */ | ||||
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 7 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame^] | 8 | extern int yylex(void); |
9 | extern int yyparse(void); | ||||
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 10 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame^] | 11 | /** |
12 | * Expected to be defined by Flex/Bison | ||||
13 | */ | ||||
14 | extern void yyerror(char* fmt, ...); | ||||
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 15 | |
Mark Slee | f5377b3 | 2006-10-10 01:42:59 +0000 | [diff] [blame^] | 16 | /** |
17 | * Parse debugging output, used to print warnings etc. | ||||
18 | */ | ||||
19 | extern void pdebug(char* fmt, ...); | ||||
20 | |||||
21 | /** | ||||
22 | * Flex utilities | ||||
23 | */ | ||||
24 | |||||
Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 25 | extern int yylineno; |
26 | extern char yytext[]; | ||||
27 | extern FILE* yyin; | ||||
28 | |||||
29 | #endif |