make_lex.tex 408 Bytes
Newer Older
huet's avatar
huet committed
1 2 3 4 5 6 7 8 9 10
\subsection{Building a trie lexicon from a byte stream}

The function {\sl trie\_of\_strings} reads on its standard input a stream of
strings separated by newline characters, builds the corresponding
trie lexicon, and writes its representation on its standard output.

It depends on a module {\sl Encoding}, which defines the string
encoding used through conversion functions {\sl encode} and
{\sl decode}.