Skip to content

Commit 65cf2e0

Browse files
committed
add back generated code
1 parent 4cfbaed commit 65cf2e0

File tree

3 files changed

+28110
-27546
lines changed

3 files changed

+28110
-27546
lines changed

src/grammar.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3684,6 +3684,18 @@
36843684
]
36853685
}
36863686
]
3687+
},
3688+
{
3689+
"type": "CHOICE",
3690+
"members": [
3691+
{
3692+
"type": "SYMBOL",
3693+
"name": "guard"
3694+
},
3695+
{
3696+
"type": "BLANK"
3697+
}
3698+
]
36873699
}
36883700
]
36893701
},
@@ -3840,6 +3852,19 @@
38403852
}
38413853
]
38423854
},
3855+
"guard": {
3856+
"type": "SEQ",
3857+
"members": [
3858+
{
3859+
"type": "STRING",
3860+
"value": "when"
3861+
},
3862+
{
3863+
"type": "SYMBOL",
3864+
"name": "expression"
3865+
}
3866+
]
3867+
},
38433868
"statement": {
38443869
"type": "CHOICE",
38453870
"members": [

src/node-types.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,6 +2143,21 @@
21432143
]
21442144
}
21452145
},
2146+
{
2147+
"type": "guard",
2148+
"named": true,
2149+
"fields": {},
2150+
"children": {
2151+
"multiple": false,
2152+
"required": true,
2153+
"types": [
2154+
{
2155+
"type": "expression",
2156+
"named": true
2157+
}
2158+
]
2159+
}
2160+
},
21462161
{
21472162
"type": "if_statement",
21482163
"named": true,
@@ -3503,6 +3518,10 @@
35033518
"type": "expression",
35043519
"named": true
35053520
},
3521+
{
3522+
"type": "guard",
3523+
"named": true
3524+
},
35063525
{
35073526
"type": "pattern",
35083527
"named": true
@@ -4512,6 +4531,10 @@
45124531
"type": "volatile",
45134532
"named": false
45144533
},
4534+
{
4535+
"type": "when",
4536+
"named": false
4537+
},
45154538
{
45164539
"type": "while",
45174540
"named": false

0 commit comments

Comments
 (0)