From be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baumann@progress-linux.org>
Date: Fri, 19 Apr 2024 04:57:58 +0200
Subject: Adding upstream version 1.44.3.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
---
 .../h2o/libh2o/misc/oktavia/src/textparser.jsx     | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 web/server/h2o/libh2o/misc/oktavia/src/textparser.jsx

(limited to 'web/server/h2o/libh2o/misc/oktavia/src/textparser.jsx')

diff --git a/web/server/h2o/libh2o/misc/oktavia/src/textparser.jsx b/web/server/h2o/libh2o/misc/oktavia/src/textparser.jsx
new file mode 100644
index 00000000..6cb4676a
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/oktavia/src/textparser.jsx
@@ -0,0 +1,25 @@
+import "js/nodejs.jsx";
+import "oktavia.jsx";
+import "stemmer/stemmer.jsx";
+
+
+class TextParser
+{
+    var oktavia : Oktavia;
+    var unit : string;
+    var root : string;
+    var stemmer : Nullable.<Stemmer>;
+
+    function constructor (unit : string, root : string, stemmer : Stemmer)
+    {
+        this.oktavia = new Oktavia();
+        this.unit = unit;
+        this.root = root;
+        this.stemmer = stemmer;
+    }
+
+    function parse (filepath : string) : void
+    {
+        var lines = node.fs.readFileSync(filepath, 'utf8');
+    }
+}
-- 
cgit v1.2.3

