aboutsummaryrefslogtreecommitdiffstats
path: root/program.h
blob: dfb5098da54dbcc415de601512e22d4420d00d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef PROGRAM_H
#define PROGRAM_H
#include "queue.h"

struct Source
{
	char *src_name;
	char *src;
	size_t src_size;

};

struct Options
{
	int print_tokens:1;
};
	
struct Translation_Data
{
	struct Queue *errors;
	struct Queue *tokens;
};

struct Source* extract_source(char *src_name);
struct Translation_Data* get_translation_data();
struct Source* get_source();
struct Options* get_options();


void destroy_translation_data(struct Translation_Data *data);
void destroy_source(struct Source *src);
void destroy_options(struct Options *options);


#endif