<s> from . state import EOF <EOL> from . tokens import TokenEof <EOL> from . tokens_base import TOKEN_COMMAND_QUIT_ALL_COMMAND <EOL> from . tokens_base import TokenOfCommand <EOL> from Vintageous import ex <EOL> @ ex . command ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> class TokenQuitAllCommand ( TokenOfCommand ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( ) . __init__ ( { } , <EOL> TOKEN_COMMAND_QUIT_ALL_COMMAND , <EOL> '<STR_LIT>' , * args , ** kwargs ) <EOL> self . target_command = '<STR_LIT>' <EOL> def scan_command_quit_all_command ( state ) : <EOL> c = state . consume ( ) <EOL> bang = c == '<STR_LIT:!>' <EOL> state . expect ( EOF ) <EOL> return None , [ TokenQuitAllCommand ( forced = bang ) , TokenEof ( ) ] </s>
