mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
48 lines
843 B
Plaintext
48 lines
843 B
Plaintext
## Law text should be able to contain grave accent '`'.
|
|
|
|
This is a block of law text containing `.
|
|
This allows to:
|
|
|
|
* use `Markdown` code block inside `Catala` files,
|
|
|
|
* _escape_ special characters such as `#` or `>`,
|
|
|
|
* use Fenced Code Blocks:
|
|
|
|
```ocaml
|
|
let () = print_endline "Hello world!"
|
|
```
|
|
|
|
```catala
|
|
déclaration champ d'application A:
|
|
contexte résultat literate_parsing_is_ok contenu booléen
|
|
|
|
champ d'application A:
|
|
définition literate_parsing_is_ok égal à vrai
|
|
```
|
|
|
|
Even after `Catala` code block:
|
|
|
|
```c
|
|
int main(void) { return 0; }
|
|
```
|
|
|
|
|
|
|
|
```catala-test-inline
|
|
$ catala Typecheck --check-invariants
|
|
┌─[RESULT]─
|
|
│ All invariant checks passed
|
|
└─
|
|
┌─[RESULT]─
|
|
│ Typechecking successful!
|
|
└─
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope A
|
|
┌─[RESULT]─
|
|
│ literate_parsing_is_ok = vrai
|
|
└─
|
|
```
|