catala/tests/test_enum/bad/too_many_cases.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

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
```