changed the way preprocessing directives are parsed
[cparser] / lexer_t.h
1 #ifndef LEXER_T_H
2 #define LEXER_T_H
3
4 #include "lexer.h"
5
6 #include <stdio.h>
7 #include "symbol_table_t.h"
8 #include "adt/obst.h"
9 #include "adt/strset.h"
10
11 #define MAX_INDENT               256
12
13 typedef struct source_position_t source_position_t;
14 struct source_position_t {
15         const char *input_name;
16         unsigned    linenr;
17 };
18
19 extern source_position_t source_position;
20
21 void init_lexer(void);
22 void exit_lexer(void);
23
24 void lexer_open_stream(FILE *stream, const char *input_name);
25
26 #endif