1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
@ ProgramNode (location: (1,0)-(1,29))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(1,29))
└── body: (length: 1)
└── @ CaseMatchNode (location: (1,0)-(1,29))
├── predicate:
│ @ IntegerNode (location: (1,5)-(1,6))
│ ├── flags: decimal
│ └── value: 1
├── conditions: (length: 1)
│ └── @ InNode (location: (1,8)-(1,15))
│ ├── pattern:
│ │ @ IntegerNode (location: (1,11)-(1,12))
│ │ ├── flags: decimal
│ │ └── value: 2
│ ├── statements:
│ │ @ StatementsNode (location: (1,14)-(1,15))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,14)-(1,15))
│ │ ├── flags: decimal
│ │ └── value: 3
│ ├── in_loc: (1,8)-(1,10) = "in"
│ └── then_loc: ∅
├── consequent:
│ @ ElseNode (location: (1,17)-(1,29))
│ ├── else_keyword_loc: (1,17)-(1,21) = "else"
│ ├── statements:
│ │ @ StatementsNode (location: (1,23)-(1,24))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,23)-(1,24))
│ │ ├── flags: decimal
│ │ └── value: 4
│ └── end_keyword_loc: (1,26)-(1,29) = "end"
├── case_keyword_loc: (1,0)-(1,4) = "case"
└── end_keyword_loc: (1,26)-(1,29) = "end"
|