ocaml-gopher/src/menu.ml
orbifx 7b1ec728cf Introduce client & parser, switch to Dune
- Server and client now have dedicated module files
- Menu and Item have their own module files
- Wrote parsers for Menu and Item
- Switch from jbuilder to dune
- Introducing gopher client
- IPv6
2022-01-04 15:20:35 +00:00

5 lines
119 B
OCaml

let ending = "\n."
let of_string menu =
let lines = String.split_on_char '\n' menu in
List.map Item.of_line lines