catala/tests/test_date/good/durations.catala
Denis Merigoux 3c8d187be0
Big refactoring of the literate programming structure
Partially fixes #120
Removes the distinction between headers and articles, streamlines the surface AST
Changes affects lexers and parser
2021-05-15 01:16:08 +02:00

18 lines
292 B
Markdown

## Article
```catala
new scope A:
param x content date
param y content date
param z content bool
param z2 content bool
param z3 content duration
scope A:
def x := |2019-01-01|
def y := |2002-09-30|
def z := y +@ (x -@ y) = x
def z3 := x -@ y
def z2 := z3 = 5937 day
```