2021-05-24 14:08:26 +03:00
|
|
|
## Law text should be able to contain grave accent '`'.
|
2021-05-15 16:14:37 +03:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2021-05-25 00:04:43 +03:00
|
|
|
```ocaml
|
2021-05-15 16:14:37 +03:00
|
|
|
let () = print_endline "Hello world!"
|
|
|
|
```
|
|
|
|
|
|
|
|
```catala
|
2021-05-24 14:08:26 +03:00
|
|
|
déclaration champ d'application A:
|
2022-12-07 20:11:13 +03:00
|
|
|
contexte résultat literate_parsing_is_ok contenu booléen
|
2021-05-15 16:14:37 +03:00
|
|
|
|
2021-06-03 16:33:40 +03:00
|
|
|
champ d'application A:
|
2021-05-24 14:08:26 +03:00
|
|
|
définition literate_parsing_is_ok égal à vrai
|
2021-05-15 16:14:37 +03:00
|
|
|
```
|
|
|
|
|
2021-05-25 00:04:43 +03:00
|
|
|
Even after `Catala` code block:
|
|
|
|
|
|
|
|
```c
|
|
|
|
int main(void) { return 0; }
|
|
|
|
```
|
2022-07-08 17:23:09 +03:00
|
|
|
|
2023-12-05 18:54:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
```catala-test-inline
|
2023-12-05 14:00:15 +03:00
|
|
|
$ catala Typecheck --check-invariants
|
2024-05-03 13:20:09 +03:00
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ All invariant checks passed
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ Typechecking successful!
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
2023-12-05 18:54:14 +03:00
|
|
|
```
|
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
2024-02-26 12:18:08 +03:00
|
|
|
$ catala test-scope A
|
2024-05-03 13:20:09 +03:00
|
|
|
┌─[RESULT]─
|
2024-05-03 16:12:52 +03:00
|
|
|
│ literate_parsing_is_ok = vrai
|
2024-05-03 13:20:09 +03:00
|
|
|
└─
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|