aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2019-03-03 18:39:34 +0100
committerkoekeishiya <aasvi93@hotmail.com>2019-03-03 18:39:34 +0100
commit56b94a6eed9fe4642382f533666dc19901fad3fc (patch)
tree6e026d8a145fad2143fe4cac1603f22a48195be9 /src/parse.h
parente23811d884b9dae356c84e4515ef52184aa3432c (diff)
downloadskhd-56b94a6eed9fe4642382f533666dc19901fad3fc.tar.gz
skhd-56b94a6eed9fe4642382f533666dc19901fad3fc.zip
#53 allow opt-out for applications
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.h b/src/parse.h
index 35bc62e..95813c2 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -11,6 +11,7 @@ struct parser
struct token current_token;
struct tokenizer tokenizer;
struct table *mode_map;
+ struct table *blacklst;
bool error;
};
@@ -23,7 +24,7 @@ bool parser_eof(struct parser *parser);
struct token parser_advance(struct parser *parser);
bool parser_check(struct parser *parser, enum token_type type);
bool parser_match(struct parser *parser, enum token_type type);
-bool parser_init(struct parser *parser, struct table *mode_map, char *file);
+bool parser_init(struct parser *parser, struct table *mode_map, struct table *blacklst, char *file);
bool parser_init_text(struct parser *parser, char *text);
void parser_destroy(struct parser *parser);
void parser_report_error(struct parser *parser, struct token token, const char *format, ...);