summaryrefslogtreecommitdiff
path: root/include/treebnf/treebnf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/treebnf/treebnf.h')
-rw-r--r--include/treebnf/treebnf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/treebnf/treebnf.h b/include/treebnf/treebnf.h
index 1a8db27..a5c0359 100644
--- a/include/treebnf/treebnf.h
+++ b/include/treebnf/treebnf.h
@@ -163,6 +163,10 @@ tbnf_api int tbnf_lib_map_raw_input (const struct tbnf_driver_ctx *,
tbnf_api int tbnf_lib_unmap_raw_input (struct tbnf_raw_input *);
+/* table-based token scanner api */
+tbnf_api int tbnf_scan_token (const struct tbnf_scan_ctx *, struct tbnf_token *);
+tbnf_api int tbnf_scan_tokens (struct tbnf_scan_ctx *, size_t ntoks, struct tbnf_token *, int any);
+
/* utility api */
tbnf_api int tbnf_main (char **, char **,
const struct tbnf_fd_ctx *);