catala/compiler/surface/dune

76 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-23 11:22:47 +03:00
(library
(name surface)
(public_name catala.surface)
2021-04-22 12:57:50 +03:00
(libraries
utils
menhirLib
sedlex
re
desugared
scopelang
zarith
zarith_stubs_js
calendar)
2020-11-23 11:22:47 +03:00
(preprocess
2021-01-20 18:06:04 +03:00
(pps sedlex.ppx visitors.ppx)))
2020-11-23 11:22:47 +03:00
2020-03-09 14:01:56 +03:00
(menhir
(modules tokens)
(flags --only-tokens))
(menhir
(modules tokens parser)
(merge_into parser)
(flags --external-tokens Tokens --table --explain))
(documentation
2020-12-14 17:23:04 +03:00
(package catala)
(mld_files surface))
;; No built-in support for Menhir's parser messages yet
(rule
(with-stdout-to
parser.messages.new
(run
menhir
%{dep:tokens.mly}
%{dep:parser.mly}
--base
parser
--list-errors)))
(rule
(with-stdout-to
parser_errors.ml
(run
menhir
%{dep:tokens.mly}
%{dep:parser.mly}
--base
parser
--compile-errors
%{dep:parser.messages})))
(rule
(with-stdout-to
parser.messages.updated
(run
menhir
%{dep:tokens.mly}
%{dep:parser.mly}
--base
parser
--update-errors
%{dep:parser.messages})))
(rule
(alias update-parser-messages)
(action
(diff parser.messages parser.messages.updated)))
(rule
(alias create-parser-messages)
(action
(diff parser.messages parser.messages.new)))