def execscript(t):
    for l in t.split('\n'):
        if ((l.strip() == '') or l.strip().startswith('//')):
            continue
        if (l.strip().split(' ')[0] in commands.keys()):
            if execomm(commands[l.strip().split(' ')[0]], *l.strip().split(' ')[1:]):
                print(((' Bad syntax "' + l) + '"'))
                break
        else:
            print(((' Unknown command "' + l) + '"'))
            break
def execscript(t):
    for l in t.split('\n'):
        if ((l.strip() == ) or l.strip().startswith('//')):
            continue
        if (l.strip().split(' ')[0] in commands.keys()):
            if execomm(commands[l.strip().split(' ')[0]], *l.strip().split(' ')[1:]):
                print(((' Bad syntax "' + l) + '"'))
                break
        else:
            print(((' Unknown command "' + l) + '"'))
            break