2021-10-01 11:01:25 +03:00
|
|
|
# Test the refactored metatdata markup
|
|
|
|
|
|
|
|
```catala-metadata
|
|
|
|
declaration enumeration E:
|
|
|
|
-- A
|
|
|
|
-- B
|
|
|
|
|
|
|
|
declaration scope S:
|
2022-02-07 14:04:48 +03:00
|
|
|
context output a content E
|
2021-10-01 11:01:25 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Some law text...
|
|
|
|
|
|
|
|
```catala-metadata
|
|
|
|
declaration scope S2:
|
2022-02-07 14:04:48 +03:00
|
|
|
context output b content E
|
2021-10-01 11:01:25 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## PROGRAM
|
|
|
|
|
|
|
|
```catala
|
|
|
|
scope S:
|
|
|
|
definition a equals A
|
|
|
|
```
|
|
|
|
|
|
|
|
```catala
|
|
|
|
scope S2:
|
|
|
|
definition b equals B
|
|
|
|
```
|
2022-07-08 17:23:09 +03:00
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
|
|
|
$ catala Interpret -s S2
|
|
|
|
[RESULT] Computation successful! Results:
|
|
|
|
[RESULT] b = B ()
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
|
|
|
$ catala Interpret -s S
|
|
|
|
[RESULT] Computation successful! Results:
|
|
|
|
[RESULT] a = A ()
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|