(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}))))