aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/parser.h8
-rw-r--r--include/tokenizer.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/parser.h b/include/parser.h
new file mode 100644
index 0000000..3523127
--- /dev/null
+++ b/include/parser.h
@@ -0,0 +1,8 @@
+#ifndef TSL_PARSER_H
+#define TSL_PARSER_H
+
+#include "tokenizer.h"
+
+int tsl_parse(const char *code, size_t code_size);
+
+#endif /* TSL_PARSER_H */
diff --git a/include/tokenizer.h b/include/tokenizer.h
index decdae4..a1d0932 100644
--- a/include/tokenizer.h
+++ b/include/tokenizer.h
@@ -32,6 +32,7 @@ typedef struct {
void tsl_tokenizer_init(TslTokenizer *self, const char *code, size_t code_size);
TslToken tsl_tokenizer_next(TslTokenizer *self);
+int tsl_tokenizer_accept(TslTokenizer *self, TslToken expected_token);
#endif /* TSL_TOKENIZER_H */