ocaml-containers/examples/dune
Simon Cruanes 9c763991ef add example and test of an IRC log parser
also add a sample of IRC logs of #ocaml on libera.chat, to make sure
they parse properly.
2021-06-06 23:01:50 -04:00

29 lines
668 B
Text

(executables
(names id_sexp ccparse_sexp ccparse_irclogs)
(libraries containers)
;(modules id_sexp)
(flags :standard -warn-error -a+8 -safe-string -color always)
(ocamlopt_flags :standard -O3 -color always
-unbox-closures -unbox-closures-factor 20))
(alias
(name runtest)
(locks /ctest)
(action
(ignore-stdout
(run ./id_sexp.exe test_data/benchpress.sexp))))
(alias
(name runtest)
(locks /ctest)
(action
(ignore-stdout
(run ./ccparse_sexp.exe test_data/benchpress.sexp))))
(alias
(name runtest)
(locks /ctest)
(action
(ignore-stdout
(run ./ccparse_irclogs.exe test_data/irc-logs.txt))))