From bfb85bf0cd7a75b910d7125c69d5e5eae2bd51c1 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 4 Aug 2023 16:36:50 +0800 Subject: add a crate 'tokens' This crate is responsible for the users to conveniently define their own tokenizers. Right now the user has to tokenize the input string manually, which is not quite what is expected from a parser, from the view point of users. --- src/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index f9ab43b..c1043c8 100644 --- a/src/test.c +++ b/src/test.c @@ -25,7 +25,7 @@ main(int argc, char **argv) "\n" "item =/ header [ note ] *1( price )\n" "\n" -"header = star \"SP\" title %xA *( \"SP\" / %xA )\n" +"header = *1star \"SP\" title %xA *( \"SP\" / %xA )\n" "\n" "title = 1*\"TEXT\"\n" "\n" -- cgit v1.2.3-18-g5258