Add binary expression
This commit is contained in:
parent
5489bd5380
commit
25924c3c5c
5 changed files with 1259 additions and 934 deletions
37
src/grammar.json
generated
37
src/grammar.json
generated
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue