Add binary expression

This commit is contained in:
Bruno BELANYI 2024-04-08 02:12:22 +01:00
parent 5489bd5380
commit 25924c3c5c
5 changed files with 1259 additions and 934 deletions

37
src/grammar.json generated
View file

@ -279,6 +279,10 @@
{
"type": "SYMBOL",
"name": "map_expression"
},
{
"type": "SYMBOL",
"name": "binary_expression"
}
]
},
@ -830,6 +834,39 @@
}
]
},
"binary_expression": {
"type": "PREC_LEFT",
"value": 0,
"content": {
"type": "SEQ",
"members": [
{
"type": "FIELD",
"name": "left",
"content": {
"type": "SYMBOL",
"name": "_expr"
}
},
{
"type": "FIELD",
"name": "operator",
"content": {
"type": "STRING",
"value": "+"
}
},
{
"type": "FIELD",
"name": "right",
"content": {
"type": "SYMBOL",
"name": "_expr"
}
}
]
}
},
"_colon_property": {
"type": "SEQ",
"members": [