Add select binding

This commit is contained in:
Bruno BELANYI 2024-07-01 13:53:48 +00:00
parent 3e685cb691
commit 1fd9b67dbe
6 changed files with 1345 additions and 1156 deletions

43
src/grammar.json generated
View file

@ -744,6 +744,10 @@
"named": true,
"value": "any"
},
{
"type": "SYMBOL",
"name": "pattern_binding"
},
{
"type": "ALIAS",
"content": {
@ -755,6 +759,45 @@
}
]
},
"pattern_binding": {
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "value",
"content": {
"type": "ALIAS",
"content": {
"type": "STRING",
"value": "any"
},
"named": true,
"value": "any"
}
},
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "ALIAS",
"content": {
"type": "STRING",
"value": "@"
},
"named": true,
"value": "operator"
}
},
{
"type": "FIELD",
"name": "binding",
"content": {
"type": "SYMBOL",
"name": "identifier"
}
}
]
},
"_case_value": {
"type": "CHOICE",
"members": [