mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
43 lines
827 B
Plaintext
43 lines
827 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 Interpret -s A
|
|
[RESULT] Computation successful! Results:
|
|
[RESULT] literate_parsing_is_ok = vrai
|
|
```
|