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