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 struct
open CML open CML
(* Prerequisite to sending message: move buffer to end. *)
fun loop () = fun loop () =
let let
val (buffer, dfa, time) = Mailbox.recv SearchMailbox.mailbox val (buffer, dfa, time) = Mailbox.recv SearchMailbox.mailbox
val searchList = val iterator = LineGap.makeStringIterator buffer
raise Fail "todo: reimplement full builder for searchList" val searchList = SearchList.build (iterator, dfa)
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time) val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
val () = InputMailbox.append msg val () = InputMailbox.append msg
in in