aboutsummaryrefslogtreecommitdiffstats
path: root/program.h
diff options
context:
space:
mode:
Diffstat (limited to 'program.h')
-rw-r--r--program.h35
1 files changed, 35 insertions, 0 deletions
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