Skip to content

Commit

Permalink
chore: generate
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw authored and claytonrcarter committed Jan 30, 2024
1 parent 760a68b commit f285e33
Show file tree
Hide file tree
Showing 4 changed files with 18,023 additions and 15,404 deletions.
149 changes: 118 additions & 31 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,8 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "as"
"value": "as",
"flags": "i"
},
"named": false,
"value": "as"
Expand Down Expand Up @@ -1680,13 +1681,21 @@
"_type": {
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_types"
},
{
"type": "SYMBOL",
"name": "union_type"
},
{
"type": "SYMBOL",
"name": "intersection_type"
},
{
"type": "SYMBOL",
"name": "disjunctive_normal_form_type"
}
]
},
Expand Down Expand Up @@ -2105,7 +2114,8 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "namespace"
"value": "namespace",
"flags": "i"
},
"named": false,
"value": "namespace"
Expand All @@ -2123,7 +2133,8 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "namespace"
"value": "namespace",
"flags": "i"
},
"named": false,
"value": "namespace"
Expand Down Expand Up @@ -2185,7 +2196,8 @@
"type": "ALIAS",
"content": {
"type": "PATTERN",
"value": "callable"
"value": "callable",
"flags": "i"
},
"named": false,
"value": "callable"
Expand Down Expand Up @@ -2250,33 +2262,29 @@
]
},
"union_type": {
"type": "PREC_RIGHT",
"value": 0,
"content": {
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "_types"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "|"
},
{
"type": "SYMBOL",
"name": "_types"
}
]
}
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "_types"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "|"
},
{
"type": "SYMBOL",
"name": "_types"
}
]
}
]
}
}
]
},
"intersection_type": {
"type": "SEQ",
Expand Down Expand Up @@ -2306,6 +2314,79 @@
}
]
},
"disjunctive_normal_form_type": {
"type": "PREC_DYNAMIC",
"value": -1,
"content": {
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "("
},
{
"type": "SYMBOL",
"name": "intersection_type"
},
{
"type": "STRING",
"value": ")"
}
]
},
{
"type": "SYMBOL",
"name": "_types"
}
]
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "|"
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "("
},
{
"type": "SYMBOL",
"name": "intersection_type"
},
{
"type": "STRING",
"value": ")"
}
]
},
{
"type": "SYMBOL",
"name": "_types"
}
]
}
]
}
}
]
}
},
"variable_name": {
"type": "SEQ",
"members": [
Expand Down Expand Up @@ -2608,9 +2689,15 @@
[
"_type_argument_list"
],
[
"_type",
"union_type",
"intersection_type",
"disjunctive_normal_form_type"
],
[
"union_type",
"intersection_type"
"disjunctive_normal_form_type"
]
],
"precedences": [],
Expand Down
87 changes: 87 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,37 @@
]
}
},
{
"type": "disjunctive_normal_form_type",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": true,
"types": [
{
"type": "array_type",
"named": true
},
{
"type": "intersection_type",
"named": true
},
{
"type": "named_type",
"named": true
},
{
"type": "optional_type",
"named": true
},
{
"type": "primitive_type",
"named": true
}
]
}
},
{
"type": "document",
"named": true,
Expand Down Expand Up @@ -150,6 +181,14 @@
"multiple": true,
"required": true,
"types": [
{
"type": "array_type",
"named": true
},
{
"type": "disjunctive_normal_form_type",
"named": true
},
{
"type": "intersection_type",
"named": true
Expand All @@ -158,6 +197,18 @@
"type": "name",
"named": true
},
{
"type": "named_type",
"named": true
},
{
"type": "optional_type",
"named": true
},
{
"type": "primitive_type",
"named": true
},
{
"type": "qualified_name",
"named": true
Expand Down Expand Up @@ -303,14 +354,34 @@
"multiple": true,
"required": true,
"types": [
{
"type": "array_type",
"named": true
},
{
"type": "default_value",
"named": true
},
{
"type": "disjunctive_normal_form_type",
"named": true
},
{
"type": "intersection_type",
"named": true
},
{
"type": "named_type",
"named": true
},
{
"type": "optional_type",
"named": true
},
{
"type": "primitive_type",
"named": true
},
{
"type": "union_type",
"named": true
Expand Down Expand Up @@ -384,6 +455,10 @@
"multiple": true,
"required": true,
"types": [
{
"type": "array_type",
"named": true
},
{
"type": "author_name",
"named": true
Expand All @@ -392,6 +467,10 @@
"type": "description",
"named": true
},
{
"type": "disjunctive_normal_form_type",
"named": true
},
{
"type": "email_address",
"named": true
Expand All @@ -412,10 +491,18 @@
"type": "named_type",
"named": true
},
{
"type": "optional_type",
"named": true
},
{
"type": "parameters",
"named": true
},
{
"type": "primitive_type",
"named": true
},
{
"type": "static",
"named": true
Expand Down
Loading

0 comments on commit f285e33

Please sign in to comment.