Skip to content

Commit

Permalink
Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Jan 18, 2022
1 parent 08b5b88 commit 640575d
Show file tree
Hide file tree
Showing 3 changed files with 245,056 additions and 240,670 deletions.
64 changes: 52 additions & 12 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2462,6 +2462,10 @@
"type": "SYMBOL",
"name": "_pattern_value"
},
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "array_pattern"
Expand Down Expand Up @@ -2515,11 +2519,11 @@
},
{
"type": "SYMBOL",
"name": "identifier"
"name": "variable_reference_pattern"
},
{
"type": "SYMBOL",
"name": "variable_reference_pattern"
"name": "expression_reference_pattern"
},
{
"type": "SYMBOL",
Expand Down Expand Up @@ -2731,10 +2735,44 @@
{
"type": "FIELD",
"name": "name",
"content": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "identifier"
},
{
"type": "SYMBOL",
"name": "_nonlocal_variable"
}
]
}
}
]
},
"expression_reference_pattern": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "^"
},
{
"type": "STRING",
"value": "("
},
{
"type": "FIELD",
"name": "value",
"content": {
"type": "SYMBOL",
"name": "identifier"
"name": "_expression"
}
},
{
"type": "STRING",
"value": ")"
}
]
},
Expand Down Expand Up @@ -6088,15 +6126,7 @@
},
{
"type": "SYMBOL",
"name": "instance_variable"
},
{
"type": "SYMBOL",
"name": "class_variable"
},
{
"type": "SYMBOL",
"name": "global_variable"
"name": "_nonlocal_variable"
},
{
"type": "SYMBOL",
Expand Down Expand Up @@ -6253,6 +6283,15 @@
"type": "SYMBOL",
"name": "operator"
},
{
"type": "SYMBOL",
"name": "_nonlocal_variable"
}
]
},
"_nonlocal_variable": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "instance_variable"
Expand Down Expand Up @@ -7484,6 +7523,7 @@
"_primary",
"_simple_numeric",
"_lhs",
"_nonlocal_variable",
"_pattern_top_expr_body",
"_pattern_expr",
"_pattern_expr_basic",
Expand Down
58 changes: 42 additions & 16 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"named": true,
"subtypes": [
{
"type": "class_variable",
"type": "_nonlocal_variable",
"named": true
},
{
Expand All @@ -130,27 +130,37 @@
"named": true
},
{
"type": "global_variable",
"type": "identifier",
"named": true
},
{
"type": "identifier",
"type": "operator",
"named": true
},
{
"type": "instance_variable",
"type": "setter",
"named": true
},
{
"type": "operator",
"type": "simple_symbol",
"named": true
}
]
},
{
"type": "_nonlocal_variable",
"named": true,
"subtypes": [
{
"type": "class_variable",
"named": true
},
{
"type": "setter",
"type": "global_variable",
"named": true
},
{
"type": "simple_symbol",
"type": "instance_variable",
"named": true
}
]
Expand Down Expand Up @@ -203,6 +213,10 @@
"type": "array_pattern",
"named": true
},
{
"type": "expression_reference_pattern",
"named": true
},
{
"type": "find_pattern",
"named": true
Expand Down Expand Up @@ -544,25 +558,17 @@
"named": true,
"subtypes": [
{
"type": "class_variable",
"type": "_nonlocal_variable",
"named": true
},
{
"type": "constant",
"named": true
},
{
"type": "global_variable",
"named": true
},
{
"type": "identifier",
"named": true
},
{
"type": "instance_variable",
"named": true
},
{
"type": "self",
"named": true
Expand Down Expand Up @@ -1705,6 +1711,22 @@
]
}
},
{
"type": "expression_reference_pattern",
"named": true,
"fields": {
"value": {
"multiple": false,
"required": true,
"types": [
{
"type": "_expression",
"named": true
}
]
}
}
},
{
"type": "find_pattern",
"named": true,
Expand Down Expand Up @@ -3351,6 +3373,10 @@
"multiple": false,
"required": true,
"types": [
{
"type": "_nonlocal_variable",
"named": true
},
{
"type": "identifier",
"named": true
Expand Down
Loading

0 comments on commit 640575d

Please sign in to comment.