| 1 |
(executable |
| 2 |
(name doc_grammar) |
| 3 |
(libraries rocq-runtime.clib coqpp)) |
| 4 |
|
| 5 |
(env (_ (binaries doc_grammar.exe))) |
| 6 |
|
| 7 |
(rule |
| 8 |
(alias check-gram) |
| 9 |
(deps |
| 10 |
(:input |
| 11 |
; Main grammar |
| 12 |
(glob_files %{project_root}/parsing/*.mlg) |
| 13 |
(glob_files %{project_root}/toplevel/*.mlg) |
| 14 |
(glob_files %{project_root}/vernac/*.mlg) |
| 15 |
(glob_files %{project_root}/plugins/btauto/*.mlg) |
| 16 |
(glob_files %{project_root}/plugins/cc/*.mlg) |
| 17 |
(glob_files %{project_root}/plugins/derive/*.mlg) |
| 18 |
(glob_files %{project_root}/plugins/extraction/*.mlg) |
| 19 |
(glob_files %{project_root}/plugins/firstorder/*.mlg) |
| 20 |
(glob_files %{project_root}/plugins/funind/*.mlg) |
| 21 |
(glob_files %{project_root}/plugins/ltac/*.mlg) |
| 22 |
(glob_files %{project_root}/plugins/micromega/*.mlg) |
| 23 |
(glob_files %{project_root}/plugins/nsatz/*.mlg) |
| 24 |
(glob_files %{project_root}/plugins/ring/*.mlg) |
| 25 |
(glob_files %{project_root}/plugins/rtauto/*.mlg) |
| 26 |
(glob_files %{project_root}/plugins/ssr/*.mlg) |
| 27 |
(glob_files %{project_root}/plugins/ssrmatching/*.mlg) |
| 28 |
(glob_files %{project_root}/plugins/syntax/*.mlg) |
| 29 |
(glob_files %{project_root}/plugins/ltac2/*.mlg) |
| 30 |
; Sphinx files |
| 31 |
(glob_files %{project_root}/doc/sphinx/language/*.rst) |
| 32 |
(glob_files %{project_root}/doc/sphinx/proof-engine/*.rst) |
| 33 |
(glob_files %{project_root}/doc/sphinx/user-extensions/*.rst) |
| 34 |
(glob_files %{project_root}/doc/sphinx/practical-tools/*.rst) |
| 35 |
(glob_files %{project_root}/doc/sphinx/addendum/*.rst) |
| 36 |
(glob_files %{project_root}/doc/sphinx/language/core/*.rst) |
| 37 |
(glob_files %{project_root}/doc/sphinx/language/extensions/*.rst) |
| 38 |
(glob_files %{project_root}/doc/sphinx/proofs/writing-proofs/*.rst) |
| 39 |
(glob_files %{project_root}/doc/sphinx/proofs/automatic-tactics/*.rst) |
| 40 |
(glob_files %{project_root}/doc/sphinx/proofs/creating-tactics/*.rst) |
| 41 |
(glob_files %{project_root}/doc/sphinx/using/libraries/*.rst) |
| 42 |
(glob_files %{project_root}/doc/sphinx/using/tools/*.rst)) |
| 43 |
common.edit_mlg |
| 44 |
orderedGrammar) |
| 45 |
(action |
| 46 |
(progn |
| 47 |
(chdir %{project_root} (run doc_grammar -no-warn -check-cmds -no-update %{input})) |
| 48 |
(diff? fullGrammar fullGrammar.new) |
| 49 |
(diff? orderedGrammar orderedGrammar.new)))) |