package bap-std
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a6e80853aaaa26b7ca564d9878891d7146ec1c83852541387c1bba1ad036b8ea
md5=13f2cb1e3b9d90348852252fb0f2d09f
doc/bap/Bap/Std/Trie/index.html
Module Std.Trie
Constructs a trie
module type Key = sig ... endKey requirements. Key is a sequence of tokens of the specified length. It is better to use contiguous data structures, like arrays as keys, otherwise you can end up with a slow implementation (i.e., don't use lists or sequences as keys, use strings, bitstrings, arrays, etc).
Prefix trie interface.
Trie is a mutable table that can be seen as a specialized form of a hash table.
Use the Trie.Make functor to create modules that implement this signature. Some modules also provide an implementation of this signature under a Trie name, e.g., Bitvector.Trie, Bil.Trie, Insn.Trie, etc. See also a Trie.String module below, that is a specialized implementation of a trie data structure with string keys.
module V1 : sig ... endmodule V2 : sig ... endmodule type S = V1.SCreate a trie for a given Key
module type Token = sig ... endMinimum required interface for a token data type
module Array : sig ... endPrefix and suffix tries for specified token types.
module String : sig ... endPredefined prefix and suffix string tries.