Skip to content

Commit

Permalink
add parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
tanzaku committed May 7, 2022
1 parent 73a77be commit 01d867b
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 116 deletions.
12 changes: 12 additions & 0 deletions src/grammar.json
Expand Up @@ -32,6 +32,18 @@
{
"type": "SYMBOL",
"name": "binary_expression"
},
{
"type": "STRING",
"value": "("
},
{
"type": "SYMBOL",
"name": "_expression"
},
{
"type": "STRING",
"value": ")"
}
]
},
Expand Down
12 changes: 10 additions & 2 deletions src/node-types.json
Expand Up @@ -5,7 +5,7 @@
"fields": {},
"children": {
"multiple": true,
"required": true,
"required": false,
"types": [
{
"type": "binary_expression",
Expand Down Expand Up @@ -51,7 +51,7 @@
"fields": {},
"children": {
"multiple": false,
"required": true,
"required": false,
"types": [
{
"type": "binary_expression",
Expand All @@ -68,6 +68,14 @@
]
}
},
{
"type": "(",
"named": false
},
{
"type": ")",
"named": false
},
{
"type": "*",
"named": false
Expand Down

0 comments on commit 01d867b

Please sign in to comment.