Regenerate
This commit is contained in:
parent
d8defd6796
commit
1c0b92971c
261
src/grammar.json
261
src/grammar.json
|
@ -519,7 +519,7 @@
|
||||||
"type": "ALIAS",
|
"type": "ALIAS",
|
||||||
"content": {
|
"content": {
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "_user_name_or_group"
|
"name": "_immediate_user_name_or_group"
|
||||||
},
|
},
|
||||||
"named": true,
|
"named": true,
|
||||||
"value": "unquoted_string"
|
"value": "unquoted_string"
|
||||||
|
@ -535,20 +535,52 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_user_name_or_group": {
|
"_user_name_or_group": {
|
||||||
|
"type": "SEQ",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "([a-z][-a-z0-9_]*|[0-9]+)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "REPEAT",
|
||||||
|
"content": {
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_immediate_user_name_or_group_fragment"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_immediate_user_name_or_group": {
|
||||||
"type": "REPEAT1",
|
"type": "REPEAT1",
|
||||||
"content": {
|
"content": {
|
||||||
"type": "CHOICE",
|
"type": "SYMBOL",
|
||||||
"members": [
|
"name": "_immediate_user_name_or_group_fragment"
|
||||||
{
|
}
|
||||||
|
},
|
||||||
|
"_immediate_user_name_or_group_fragment": {
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "IMMEDIATE_TOKEN",
|
||||||
|
"content": {
|
||||||
"type": "PATTERN",
|
"type": "PATTERN",
|
||||||
"value": "([a-z][-a-z0-9_]*|[0-9]+)"
|
"value": "([a-z][-a-z0-9_]*|[0-9]+)"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "SYMBOL",
|
|
||||||
"name": "expansion"
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_immediate_expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"workdir_instruction": {
|
"workdir_instruction": {
|
||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
|
@ -669,20 +701,41 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"_stopsignal_value": {
|
"_stopsignal_value": {
|
||||||
"type": "REPEAT1",
|
"type": "SEQ",
|
||||||
"content": {
|
"members": [
|
||||||
"type": "CHOICE",
|
{
|
||||||
"members": [
|
"type": "CHOICE",
|
||||||
{
|
"members": [
|
||||||
"type": "PATTERN",
|
{
|
||||||
"value": "[A-Z0-9]+"
|
"type": "PATTERN",
|
||||||
},
|
"value": "[A-Z0-9]+"
|
||||||
{
|
},
|
||||||
"type": "SYMBOL",
|
{
|
||||||
"name": "expansion"
|
"type": "SYMBOL",
|
||||||
|
"name": "expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "REPEAT",
|
||||||
|
"content": {
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "IMMEDIATE_TOKEN",
|
||||||
|
"content": {
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "[A-Z0-9]+"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_immediate_expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
},
|
},
|
||||||
"healthcheck_instruction": {
|
"healthcheck_instruction": {
|
||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
|
@ -799,12 +852,15 @@
|
||||||
"type": "CHOICE",
|
"type": "CHOICE",
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
"type": "PATTERN",
|
"type": "IMMEDIATE_TOKEN",
|
||||||
"value": "[^\\s\\$]+"
|
"content": {
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "[^\\s\\$]+"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -819,41 +875,82 @@
|
||||||
"value": "$"
|
"value": "$"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "CHOICE",
|
"type": "SYMBOL",
|
||||||
|
"name": "_expansion_body"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_immediate_expansion": {
|
||||||
|
"type": "ALIAS",
|
||||||
|
"content": {
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_imm_expansion"
|
||||||
|
},
|
||||||
|
"named": true,
|
||||||
|
"value": "expansion"
|
||||||
|
},
|
||||||
|
"_imm_expansion": {
|
||||||
|
"type": "SEQ",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "IMMEDIATE_TOKEN",
|
||||||
|
"content": {
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "$"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_expansion_body"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"_expansion_body": {
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "variable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SEQ",
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "IMMEDIATE_TOKEN",
|
||||||
"name": "variable"
|
"content": {
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "{"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SEQ",
|
"type": "ALIAS",
|
||||||
"members": [
|
"content": {
|
||||||
{
|
"type": "IMMEDIATE_TOKEN",
|
||||||
"type": "STRING",
|
"content": {
|
||||||
"value": "{"
|
"type": "PATTERN",
|
||||||
},
|
"value": "[^\\}]+"
|
||||||
{
|
|
||||||
"type": "ALIAS",
|
|
||||||
"content": {
|
|
||||||
"type": "PATTERN",
|
|
||||||
"value": "[^\\}]+"
|
|
||||||
},
|
|
||||||
"named": true,
|
|
||||||
"value": "variable"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "STRING",
|
|
||||||
"value": "}"
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
"named": true,
|
||||||
|
"value": "variable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "IMMEDIATE_TOKEN",
|
||||||
|
"content": {
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"variable": {
|
"variable": {
|
||||||
"type": "PATTERN",
|
"type": "IMMEDIATE_TOKEN",
|
||||||
"value": "[a-zA-Z][a-zA-Z0-9_]*"
|
"content": {
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "[a-zA-Z][a-zA-Z0-9_]*"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"env_pair": {
|
"env_pair": {
|
||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
|
@ -1090,12 +1187,15 @@
|
||||||
"type": "CHOICE",
|
"type": "CHOICE",
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
"type": "PATTERN",
|
"type": "IMMEDIATE_TOKEN",
|
||||||
"value": "[^@:\\s\\$]+"
|
"content": {
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "[^@:\\s\\$]+"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1126,7 +1226,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1157,7 +1257,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1203,20 +1303,41 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"image_alias": {
|
"image_alias": {
|
||||||
"type": "REPEAT1",
|
"type": "SEQ",
|
||||||
"content": {
|
"members": [
|
||||||
"type": "CHOICE",
|
{
|
||||||
"members": [
|
"type": "CHOICE",
|
||||||
{
|
"members": [
|
||||||
"type": "PATTERN",
|
{
|
||||||
"value": "[-a-zA-Z0-9_]+"
|
"type": "PATTERN",
|
||||||
},
|
"value": "[-a-zA-Z0-9_]+"
|
||||||
{
|
},
|
||||||
"type": "SYMBOL",
|
{
|
||||||
"name": "expansion"
|
"type": "SYMBOL",
|
||||||
|
"name": "expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "REPEAT",
|
||||||
|
"content": {
|
||||||
|
"type": "CHOICE",
|
||||||
|
"members": [
|
||||||
|
{
|
||||||
|
"type": "IMMEDIATE_TOKEN",
|
||||||
|
"content": {
|
||||||
|
"type": "PATTERN",
|
||||||
|
"value": "[-a-zA-Z0-9_]+"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SYMBOL",
|
||||||
|
"name": "_immediate_expansion"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
},
|
},
|
||||||
"string_array": {
|
"string_array": {
|
||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
|
@ -1388,7 +1509,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1420,7 +1541,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "expansion"
|
"name": "_immediate_expansion"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
8497
src/parser.c
8497
src/parser.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue