reimplement functionality to run whole text search using DFA

This commit is contained in:
2025-10-08 06:40:20 +01:00
parent 3c2e5812cd
commit 4d1b2073dc

View File

@@ -2,12 +2,11 @@ structure SearchThread =
struct
open CML
(* Prerequisite to sending message: move buffer to end. *)
fun loop () =
let
val (buffer, dfa, time) = Mailbox.recv SearchMailbox.mailbox
val searchList =
raise Fail "todo: reimplement full builder for searchList"
val iterator = LineGap.makeStringIterator buffer
val searchList = SearchList.build (iterator, dfa)
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
val () = InputMailbox.append msg
in