e0/lib/dune
2022-03-08 03:20:19 -06:00

22 lines
396 B
Plaintext

(library
(name e0)
(libraries menhirLib)
(preprocess
(pps ppx_deriving.show ppx_deriving.ord)))
(ocamllex lexer)
(menhir
(flags --table)
(modules parser))
; https://baturin.org/blog/declarative-parse-error-reporting-with-menhir/
(rule
(targets parser_messages.ml)
(deps parser.messages parser.mly)
(action
(with-stdout-to
%{targets}
(run menhir --compile-errors %{deps}))))