summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-05-15 19:28:39 +0000
committermidipix <writeonce@midipix.org>2024-05-15 19:29:55 +0000
commitae7810f56e1daa1d2e35c06969c26835c1ed7800 (patch)
tree20bf43e0089c347674553db5195a8b16b8991786 /include
parent6291ad9865afff38f6cb96906ff8afade950b868 (diff)
downloadtreebnf-ae7810f56e1daa1d2e35c06969c26835c1ed7800.tar.bz2
treebnf-ae7810f56e1daa1d2e35c06969c26835c1ed7800.tar.xz
table-based token scanner: implemented tbnf_scan_token(), tbnf_scan_tokens().
Diffstat (limited to 'include')
-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 *);