From ae7810f56e1daa1d2e35c06969c26835c1ed7800 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 15 May 2024 19:28:39 +0000 Subject: table-based token scanner: implemented tbnf_scan_token(), tbnf_scan_tokens(). --- include/treebnf/treebnf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 *); -- cgit v1.2.3