From 4b54289c48b044cfa234b731cb016ad210dd8985 Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 17 Aug 2023 19:48:21 +0400 Subject: [PATCH] more and testing on parse-vp --- src/demo-components/ParserDemo.tsx | 2 +- src/lib/src/parsing/parse-verb.test.ts | 7 +- src/lib/src/parsing/parse-verb.ts | 1 + src/lib/src/parsing/parse-vp.test.ts | 660 +++++++++++++++++++++++++ src/lib/src/parsing/parse-vp.ts | 548 ++++---------------- src/lib/src/parsing/tokenizer.ts | 5 +- src/lib/src/parsing/utils.ts | 6 + 7 files changed, 763 insertions(+), 466 deletions(-) create mode 100644 src/lib/src/parsing/parse-vp.test.ts diff --git a/src/demo-components/ParserDemo.tsx b/src/demo-components/ParserDemo.tsx index a43f4e2..9400acd 100644 --- a/src/demo-components/ParserDemo.tsx +++ b/src/demo-components/ParserDemo.tsx @@ -50,7 +50,7 @@ function ParserDemo({ opts }: { opts: T.TextOptions }) { {errors.length > 0 && ( <>
- {errors.length > 0 ? ( + {errors.length > 1 ? ( <>
possible errors: