mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-09-11 16:05:51 +03:00
While Bird Style literate mode is useful, it does not lend itself well to more modern markdown-like notations such as Org-Mode and CommonMark. This commit extends Idris2's existing literate mode to recognise both 'visible' and 'invisible' code blocks and lines in predefined markdown styles. The styles and their elements are: + Bird Style :: `>` denotes a visible code line, `<` a hidden code line. + OrgMode :: Org Mode source blocks for idris are recognised as visible code blocks, and comment blocks are invisible code blocks. Invisible code lines are denoted with `#+IDRIS:`. + CommonMark :: Only code blocks denoted by standard code blocks labelled as idris are recognised. For backwards compatibility, we recognise literate modes by file extension: + Bird Style :: `.lidr` + OrgMode :: `.org` + CommonMark :: `.md` In future we should add support for literate `LaTeX` files, and more intelligent processing of literate documents using a pandoc like library in Idris such as: [Edda](https://github.com/jfdm/edda). |
||
---|---|---|
.. | ||
chez | ||
ideMode | ||
idris2 | ||
ttimp | ||
typedd-book | ||
Main.idr | ||
Makefile | ||
README.md |
Tests
Note: The commands listed in this section should be run from the repository's root folder.
Run all tests: make test
To run only a subset of the tests use: make test only=NAME
. NAME
is matched against the path to each test case.
Examples:
make test only=chez
will run all Chez Scheme tests.make test only=ttimp/basic
will run all basic tests forTTImp
.make test only=idris2/basic001
will run a specific test.