mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
3649f92975
This changes the `decl_ctx` to be toplevel only, with flattened references to uids for most elements. The module hierarchy, which is still useful in a few places, is kept separately. Module names are also changed to UIDs early on, and support for module aliases has been added (needs testing). This resolves some issues with lookup, and should be much more robust, as well as more convenient for most lookups. The `decl_ctx` was also extended for string ident lookups, which avoids having to keep the desugared resolution structure available throughout the compilation chain.
66 lines
1.2 KiB
Plaintext
66 lines
1.2 KiB
Plaintext
(dirs runtimes compiler french_law build_system examples)
|
|
|
|
(data_only_dirs tests syntax_highlighting)
|
|
|
|
(copy_files compiler/surface/grammar.html)
|
|
|
|
; Override dune default warnings with sane settings
|
|
|
|
(env
|
|
; don't stop building because of warnings
|
|
(dev
|
|
(flags
|
|
(:standard -warn-error -a -w -67)))
|
|
; for CI runs: must fail on warnings
|
|
(check
|
|
(flags
|
|
(:standard
|
|
-w
|
|
+a-4-29-40-41-42-44-45-48-58-59-60-63-64-65-66-67-68-69-70
|
|
-warn-error
|
|
+a)))
|
|
; let us see the warnings even in release mode, but non-fatal
|
|
(release
|
|
(flags
|
|
(:standard
|
|
-w
|
|
+a-4-29-40-41-42-44-45-48-58-59-60-63-64-65-66-67-68-69-70
|
|
-warn-error
|
|
-a))))
|
|
|
|
(rule
|
|
(action
|
|
(with-stdout-to
|
|
catala.html
|
|
(pipe-stdout
|
|
(run catala --help=groff)
|
|
(run groff -P -l -P -r -mandoc -Thtml)))))
|
|
|
|
(rule
|
|
(action
|
|
(with-stdout-to
|
|
clerk.html
|
|
(pipe-stdout
|
|
(run clerk --help=groff)
|
|
(run groff -P -l -P -r -mandoc -Thtml)))))
|
|
|
|
(alias
|
|
(name exec)
|
|
(deps compiler/catala.exe build_system/clerk.exe))
|
|
|
|
(rule
|
|
(alias runtest)
|
|
(package clerk)
|
|
(deps
|
|
(source_tree tests))
|
|
(action
|
|
(run clerk --exe %{bin:catala} test tests)))
|
|
|
|
(rule
|
|
(alias runtest)
|
|
(package clerk)
|
|
(deps
|
|
(source_tree examples))
|
|
(action
|
|
(run clerk --exe %{bin:catala} test examples)))
|