Add rule to recreate the error message file from scratch

This commit is contained in:
Denis Merigoux 2021-02-17 10:57:48 +01:00
parent 716700c8be
commit ea451bc46f

View File

@ -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)))