change type of SEARCH message to take a DFA, instead of a searchString

This commit is contained in:
2025-10-08 05:54:19 +01:00
parent 06106f5de8
commit 5c8e74ac11
5 changed files with 22 additions and 27 deletions

View File

@@ -5,8 +5,9 @@ struct
(* Prerequisite to sending message: move buffer to end. *)
fun loop () =
let
val (buffer, searchString, time) = Mailbox.recv SearchMailbox.mailbox
val searchList = SearchList.build (buffer, searchString)
val (buffer, dfa, time) = Mailbox.recv SearchMailbox.mailbox
val searchList =
raise Fail "todo: reimplement full builder for searchList"
val msg = InputMsg.WITH_SEARCH_LIST (searchList, time)
val () = InputMailbox.append msg
in