mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
3c8d187be0
Partially fixes #120 Removes the distinction between headers and articles, streamlines the surface AST Changes affects lexers and parser
18 lines
292 B
Markdown
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
|
|
```
|