<s> from . state import EOF <EOL> from . tokens import TokenEof <EOL> from . tokens_base import TOKEN_COMMAND_SHELL_OUT <EOL> from . tokens_base import TokenOfCommand <EOL> from Vintageous import ex <EOL> @ ex . command ( '<STR_LIT:!>' , '<STR_LIT:!>' ) <EOL> class TokenShellOut ( TokenOfCommand ) : <EOL> def __init__ ( self , params , * args , ** kwargs ) : <EOL> super ( ) . __init__ ( params , <EOL> TOKEN_COMMAND_SHELL_OUT , <EOL> '<STR_LIT:!>' , * args , ** kwargs ) <EOL> self . addressable = True <EOL> self . target_command = '<STR_LIT>' <EOL> @ property <EOL> def command ( self ) : <EOL> return self . params [ '<STR_LIT>' ] <EOL> def scan_command_shell_out ( state ) : <EOL> params = { <EOL> '<STR_LIT>' : None , <EOL> } <EOL> m = state . expect_match ( r'<STR_LIT>' ) <EOL> params . update ( m . groupdict ( ) ) <EOL> return None , [ TokenShellOut ( params ) , TokenEof ( ) ] </s>
