annotatec/parse.h -rw-r--r-- 358 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _PARSE_H
#define _PARSE_H
#include <stdbool.h>
#include <stdio.h>
#include "graph.h"

int yyparse(void);
struct source_file *lexreset(const char *filename, FILE *input);

struct strloc {
	int lineno, colno;
	char *name;
};

struct strloc_list {
	struct strloc strloc;
	struct strloc_list *next;
};

extern struct source_file *current_source;

#endif