mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-14 03:14:55 +03:00
3c8d187be0
Partially fixes #120 Removes the distinction between headers and articles, streamlines the surface AST Changes affects lexers and parser
23 lines
304 B
Markdown
23 lines
304 B
Markdown
## Article
|
|
|
|
```catala
|
|
new enum E:
|
|
-- Case1 content int
|
|
-- Case2 content bool
|
|
-- Case3
|
|
|
|
new enum F:
|
|
-- Case4
|
|
|
|
new scope A:
|
|
param e content E
|
|
param out content bool
|
|
|
|
scope A:
|
|
def out := match e with
|
|
-- Case1 of i : i = 0
|
|
-- Case2 of b : b
|
|
-- Case3 : false
|
|
-- Case4 : true
|
|
```
|