aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/parse.h b/src/parse.h
index 95813c2..6576f7a 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -4,18 +4,26 @@
#include "tokenize.h"
#include <stdbool.h>
+struct load_directive
+{
+ char *file;
+ struct token option;
+};
+
struct table;
struct parser
{
+ char *file;
struct token previous_token;
struct token current_token;
struct tokenizer tokenizer;
struct table *mode_map;
struct table *blacklst;
+ struct load_directive *load_directives;
bool error;
};
-void parse_config(struct parser *parser);
+bool parse_config(struct parser *parser);
struct hotkey *parse_keypress(struct parser *parser);
struct token parser_peek(struct parser *parser);