Regenerate
This commit is contained in:
parent
bd355ef2d1
commit
2a43a1c184
265
src/grammar.json
265
src/grammar.json
|
@ -200,7 +200,7 @@
|
|||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string_array"
|
||||
"name": "json_string_array"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
|
@ -227,7 +227,7 @@
|
|||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string_array"
|
||||
"name": "json_string_array"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
|
@ -432,7 +432,7 @@
|
|||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string_array"
|
||||
"name": "json_string_array"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
|
@ -459,7 +459,7 @@
|
|||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string_array"
|
||||
"name": "json_string_array"
|
||||
},
|
||||
{
|
||||
"type": "SEQ",
|
||||
|
@ -664,6 +664,10 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "double_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "single_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "unquoted_string"
|
||||
|
@ -806,7 +810,7 @@
|
|||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "string_array"
|
||||
"name": "json_string_array"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -999,6 +1003,10 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "double_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "single_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "unquoted_string"
|
||||
|
@ -1041,6 +1049,10 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "double_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "single_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "unquoted_string"
|
||||
|
@ -1122,6 +1134,10 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "double_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "single_quoted_string"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"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": {
|
||||
"type": "SEQ",
|
||||
"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": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
|
@ -1609,8 +1669,17 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "escape_sequence"
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "double_quoted_escape_sequence"
|
||||
},
|
||||
"named": true,
|
||||
"value": "escape_sequence"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\\"
|
||||
},
|
||||
{
|
||||
"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": {
|
||||
"type": "REPEAT1",
|
||||
"content": {
|
||||
|
@ -1634,7 +1744,7 @@
|
|||
"type": "IMMEDIATE_TOKEN",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[^\\s\\n\\\"\\\\\\$]+"
|
||||
"value": "[^\\s\\n\\\"'\\\\\\$]+"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1651,39 +1761,34 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"escape_sequence": {
|
||||
"double_quoted_escape_sequence": {
|
||||
"type": "IMMEDIATE_TOKEN",
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\\"
|
||||
"value": "\\\\"
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "[^xuU]"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "\\d{2,3}"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "x[0-9a-fA-F]{2,}"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "u[0-9a-fA-F]{4}"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "U[0-9a-fA-F]{8}"
|
||||
}
|
||||
]
|
||||
"type": "STRING",
|
||||
"value": "\\\""
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"single_quoted_escape_sequence": {
|
||||
"type": "IMMEDIATE_TOKEN",
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\\\\"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\\'"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
"type": "double_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "single_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "unquoted_string",
|
||||
"named": true
|
||||
|
@ -57,11 +61,11 @@
|
|||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "shell_command",
|
||||
"type": "json_string_array",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "string_array",
|
||||
"type": "shell_command",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
|
@ -124,11 +128,11 @@
|
|||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "shell_command",
|
||||
"type": "json_string_array",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "string_array",
|
||||
"type": "shell_command",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
|
@ -171,6 +175,10 @@
|
|||
"type": "double_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "single_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "unquoted_string",
|
||||
"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",
|
||||
"named": true,
|
||||
|
@ -400,6 +438,10 @@
|
|||
"type": "double_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "single_quoted_string",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "unquoted_string",
|
||||
"named": true
|
||||
|
@ -568,6 +610,10 @@
|
|||
"multiple": true,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "json_string_array",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "mount_param",
|
||||
"named": true
|
||||
|
@ -579,10 +625,6 @@
|
|||
{
|
||||
"type": "shell_command",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "string_array",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -624,7 +666,22 @@
|
|||
"required": true,
|
||||
"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
|
||||
}
|
||||
]
|
||||
|
@ -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",
|
||||
"named": true,
|
||||
|
@ -801,11 +843,11 @@
|
|||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "path",
|
||||
"type": "json_string_array",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "string_array",
|
||||
"type": "path",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
|
@ -842,6 +884,10 @@
|
|||
"type": "$",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "'",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": ",",
|
||||
"named": false
|
||||
|
@ -958,6 +1004,10 @@
|
|||
"type": "[",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "\\",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "\\\n",
|
||||
"named": false
|
||||
|
|
9123
src/parser.c
9123
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue