diff --git a/src/catala/surface/dune b/src/catala/surface/dune index 34b2698a..5fe17aee 100644 --- a/src/catala/surface/dune +++ b/src/catala/surface/dune @@ -16,6 +16,11 @@ ;; No built-in support for Menhir's parser messages yet +(rule + (with-stdout-to + parser.messages.new + (run menhir %{dep:parser.mly} --list-errors))) + (rule (with-stdout-to parser_errors.ml @@ -30,3 +35,8 @@ (alias update-parser-messages) (action (diff parser.messages parser.messages.updated))) + +(rule + (alias create-parser-messages) + (action + (diff parser.messages parser.messages.new)))