From a3e36c1918e63761dfc4d2221cca3636b98e93aa Mon Sep 17 00:00:00 2001 From: Adam Branes Date: Sun, 2 May 2021 17:45:58 +0300 Subject: initial housekeeping done --- program.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 program.h (limited to 'program.h') diff --git a/program.h b/program.h new file mode 100644 index 0000000..dfb5098 --- /dev/null +++ b/program.h @@ -0,0 +1,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 -- cgit v1.2.3