def command
_name
= regex
("^(\\$[^\\s]+)".
r) def simple
_arg
= regex
("^([^\\s]+)".
r) def quoted
_arg
= regex
("^\"(.*?(?<!\\\\)(\\\\\\\\)*)\"".
r) def command
= command
_name ~
(simple
_arg | quoted
_arg
*) }
b2JqZWN0IEQgZXh0ZW5kcyBSZWdleFBhcnNlcnMgewogIG92ZXJyaWRlIHR5cGUgRWxlbSA9IENoYXIKICBkZWYgY29tbWFuZF9uYW1lID0gcmVnZXgoIl4oXFwkW15cXHNdKykiLnIpCiAgZGVmIHNpbXBsZV9hcmcgPSByZWdleCgiXihbXlxcc10rKSIucikKICBkZWYgcXVvdGVkX2FyZyA9IHJlZ2V4KCJeXCIoLio/KD88IVxcXFwpKFxcXFxcXFxcKSopXCIiLnIpCiAgZGVmIGNvbW1hbmQgPSBjb21tYW5kX25hbWUgfiAoc2ltcGxlX2FyZyB8IHF1b3RlZF9hcmcgKikKfQo=