Regenerate

This commit is contained in:
Martin Jambon 2023-06-23 14:55:54 -07:00
parent bd355ef2d1
commit 2a43a1c184
3 changed files with 4831 additions and 4659 deletions

View file

@ -200,7 +200,7 @@
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "string_array" "name": "json_string_array"
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",
@ -227,7 +227,7 @@
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "string_array" "name": "json_string_array"
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",
@ -432,7 +432,7 @@
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "string_array" "name": "json_string_array"
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",
@ -459,7 +459,7 @@
"members": [ "members": [
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "string_array" "name": "json_string_array"
}, },
{ {
"type": "SEQ", "type": "SEQ",
@ -664,6 +664,10 @@
"type": "SYMBOL", "type": "SYMBOL",
"name": "double_quoted_string" "name": "double_quoted_string"
}, },
{
"type": "SYMBOL",
"name": "single_quoted_string"
},
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "unquoted_string" "name": "unquoted_string"
@ -806,7 +810,7 @@
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "string_array" "name": "json_string_array"
} }
] ]
}, },
@ -999,6 +1003,10 @@
"type": "SYMBOL", "type": "SYMBOL",
"name": "double_quoted_string" "name": "double_quoted_string"
}, },
{
"type": "SYMBOL",
"name": "single_quoted_string"
},
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "unquoted_string" "name": "unquoted_string"
@ -1041,6 +1049,10 @@
"type": "SYMBOL", "type": "SYMBOL",
"name": "double_quoted_string" "name": "double_quoted_string"
}, },
{
"type": "SYMBOL",
"name": "single_quoted_string"
},
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "unquoted_string" "name": "unquoted_string"
@ -1122,6 +1134,10 @@
"type": "SYMBOL", "type": "SYMBOL",
"name": "double_quoted_string" "name": "double_quoted_string"
}, },
{
"type": "SYMBOL",
"name": "single_quoted_string"
},
{ {
"type": "SYMBOL", "type": "SYMBOL",
"name": "unquoted_string" "name": "unquoted_string"
@ -1440,52 +1456,6 @@
} }
] ]
}, },
"string_array": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "["
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "double_quoted_string"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "SYMBOL",
"name": "double_quoted_string"
}
]
}
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "]"
}
]
},
"shell_command": { "shell_command": {
"type": "SEQ", "type": "SEQ",
"members": [ "members": [
@ -1589,6 +1559,96 @@
} }
] ]
}, },
"json_string_array": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "["
},
{
"type": "CHOICE",
"members": [
{
"type": "SEQ",
"members": [
{
"type": "SYMBOL",
"name": "json_string"
},
{
"type": "REPEAT",
"content": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": ","
},
{
"type": "SYMBOL",
"name": "json_string"
}
]
}
}
]
},
{
"type": "BLANK"
}
]
},
{
"type": "STRING",
"value": "]"
}
]
},
"json_string": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "\""
},
{
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "PATTERN",
"value": "[^\"\\\\]+"
}
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "json_escape_sequence"
},
"named": true,
"value": "escape_sequence"
}
]
}
},
{
"type": "STRING",
"value": "\""
}
]
},
"json_escape_sequence": {
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "PATTERN",
"value": "\\\\(?:[\"\\\\/bfnrt]|u[0-9A-Fa-f]{4})"
}
},
"double_quoted_string": { "double_quoted_string": {
"type": "SEQ", "type": "SEQ",
"members": [ "members": [
@ -1609,8 +1669,17 @@
} }
}, },
{ {
"type": "SYMBOL", "type": "ALIAS",
"name": "escape_sequence" "content": {
"type": "SYMBOL",
"name": "double_quoted_escape_sequence"
},
"named": true,
"value": "escape_sequence"
},
{
"type": "STRING",
"value": "\\"
}, },
{ {
"type": "SYMBOL", "type": "SYMBOL",
@ -1625,6 +1694,47 @@
} }
] ]
}, },
"single_quoted_string": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "'"
},
{
"type": "REPEAT",
"content": {
"type": "CHOICE",
"members": [
{
"type": "IMMEDIATE_TOKEN",
"content": {
"type": "PATTERN",
"value": "[^'\\n\\\\]+"
}
},
{
"type": "ALIAS",
"content": {
"type": "SYMBOL",
"name": "single_quoted_escape_sequence"
},
"named": true,
"value": "escape_sequence"
},
{
"type": "STRING",
"value": "\\"
}
]
}
},
{
"type": "STRING",
"value": "'"
}
]
},
"unquoted_string": { "unquoted_string": {
"type": "REPEAT1", "type": "REPEAT1",
"content": { "content": {
@ -1634,7 +1744,7 @@
"type": "IMMEDIATE_TOKEN", "type": "IMMEDIATE_TOKEN",
"content": { "content": {
"type": "PATTERN", "type": "PATTERN",
"value": "[^\\s\\n\\\"\\\\\\$]+" "value": "[^\\s\\n\\\"'\\\\\\$]+"
} }
}, },
{ {
@ -1651,39 +1761,34 @@
] ]
} }
}, },
"escape_sequence": { "double_quoted_escape_sequence": {
"type": "IMMEDIATE_TOKEN", "type": "IMMEDIATE_TOKEN",
"content": { "content": {
"type": "SEQ", "type": "CHOICE",
"members": [ "members": [
{ {
"type": "STRING", "type": "STRING",
"value": "\\" "value": "\\\\"
}, },
{ {
"type": "CHOICE", "type": "STRING",
"members": [ "value": "\\\""
{ }
"type": "PATTERN", ]
"value": "[^xuU]" }
}, },
{ "single_quoted_escape_sequence": {
"type": "PATTERN", "type": "IMMEDIATE_TOKEN",
"value": "\\d{2,3}" "content": {
}, "type": "CHOICE",
{ "members": [
"type": "PATTERN", {
"value": "x[0-9a-fA-F]{2,}" "type": "STRING",
}, "value": "\\\\"
{ },
"type": "PATTERN", {
"value": "u[0-9a-fA-F]{4}" "type": "STRING",
}, "value": "\\'"
{
"type": "PATTERN",
"value": "U[0-9a-fA-F]{8}"
}
]
} }
] ]
} }

View file

@ -30,6 +30,10 @@
"type": "double_quoted_string", "type": "double_quoted_string",
"named": true "named": true
}, },
{
"type": "single_quoted_string",
"named": true
},
{ {
"type": "unquoted_string", "type": "unquoted_string",
"named": true "named": true
@ -57,11 +61,11 @@
"required": true, "required": true,
"types": [ "types": [
{ {
"type": "shell_command", "type": "json_string_array",
"named": true "named": true
}, },
{ {
"type": "string_array", "type": "shell_command",
"named": true "named": true
} }
] ]
@ -124,11 +128,11 @@
"required": true, "required": true,
"types": [ "types": [
{ {
"type": "shell_command", "type": "json_string_array",
"named": true "named": true
}, },
{ {
"type": "string_array", "type": "shell_command",
"named": true "named": true
} }
] ]
@ -171,6 +175,10 @@
"type": "double_quoted_string", "type": "double_quoted_string",
"named": true "named": true
}, },
{
"type": "single_quoted_string",
"named": true
},
{ {
"type": "unquoted_string", "type": "unquoted_string",
"named": true "named": true
@ -363,6 +371,36 @@
] ]
} }
}, },
{
"type": "json_string",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "escape_sequence",
"named": true
}
]
}
},
{
"type": "json_string_array",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "json_string",
"named": true
}
]
}
},
{ {
"type": "label_instruction", "type": "label_instruction",
"named": true, "named": true,
@ -400,6 +438,10 @@
"type": "double_quoted_string", "type": "double_quoted_string",
"named": true "named": true
}, },
{
"type": "single_quoted_string",
"named": true
},
{ {
"type": "unquoted_string", "type": "unquoted_string",
"named": true "named": true
@ -568,6 +610,10 @@
"multiple": true, "multiple": true,
"required": true, "required": true,
"types": [ "types": [
{
"type": "json_string_array",
"named": true
},
{ {
"type": "mount_param", "type": "mount_param",
"named": true "named": true
@ -579,10 +625,6 @@
{ {
"type": "shell_command", "type": "shell_command",
"named": true "named": true
},
{
"type": "string_array",
"named": true
} }
] ]
} }
@ -624,7 +666,22 @@
"required": true, "required": true,
"types": [ "types": [
{ {
"type": "string_array", "type": "json_string_array",
"named": true
}
]
}
},
{
"type": "single_quoted_string",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "escape_sequence",
"named": true "named": true
} }
] ]
@ -736,21 +793,6 @@
] ]
} }
}, },
{
"type": "string_array",
"named": true,
"fields": {},
"children": {
"multiple": true,
"required": false,
"types": [
{
"type": "double_quoted_string",
"named": true
}
]
}
},
{ {
"type": "unquoted_string", "type": "unquoted_string",
"named": true, "named": true,
@ -801,11 +843,11 @@
"required": true, "required": true,
"types": [ "types": [
{ {
"type": "path", "type": "json_string_array",
"named": true "named": true
}, },
{ {
"type": "string_array", "type": "path",
"named": true "named": true
} }
] ]
@ -842,6 +884,10 @@
"type": "$", "type": "$",
"named": false "named": false
}, },
{
"type": "'",
"named": false
},
{ {
"type": ",", "type": ",",
"named": false "named": false
@ -958,6 +1004,10 @@
"type": "[", "type": "[",
"named": false "named": false
}, },
{
"type": "\\",
"named": false
},
{ {
"type": "\\\n", "type": "\\\n",
"named": false "named": false

File diff suppressed because it is too large Load diff