reimplement functionality to run whole text search using DFA
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user