

def scan_command_delete(state):
    params = {
        'register': '"',
        'count': None,
    }
    state.skip(' ')
    state.ignore()
    c = state.consume()
    if (c == EOF):
        return (None, [TokenDelete(params), TokenEof()])
    state.backup()
    state.skip(' ')
    state.ignore()
    m = state.expect_match('(?P<register>[a-zA-Z0-9"])(?:\\s+(?P<count>\\d+))?\\s*$')
    params.update(m.groupdict())
    if params['count']:
        raise NotImplementedError('parameter not implemented')
    return (None, [TokenDelete(params), TokenEof()])

dataset/ETHPy150Open guillermooo/Vintageous/ex/parser/scanner_command_delete.py scan_command_delete/original