mirror of
https://github.com/anoma/juvix.git
synced 2024-12-01 00:04:58 +03:00
444fdc4416
Juvix now provides an intial and functional formatting tool by calling the command `juvix dev scope file --with-comments` . This PR adds a new Makefile target `juvix-format` to format all the Juvix programs we showcase in the documentation as Juvix-projects, i.e., files from the `examples` directory. Note the corresponding target in the Makefile also calls the typechecker to ensure the programs do not have type errors introduced by the formatter, considering also that all the Juvix files in the `examples` directory type-checked before this PR. Thus, we should preserve that state. Finally, I included `juvix-format` as part of the `check` target, so we widen the testing of the compiler. The formatter is not perfect yet, so we need to fix some formatting issues manually. For example, the end of the line is modified by the formatting. We can fix this by calling after `make pre-commit`. |
||
---|---|---|
.. | ||
demo | ||
milestone |