from .base_executor import ScriptExecutor


class Executor(ScriptExecutor):
    ext = '.lua'
    name = 'LUA'
    command = 'lua'
    address_grace = 131072
    test_program = "io.write(io.read('*all'))"

    @classmethod
    def get_version_flags(cls, command):
        return ['-v']

from .base_executor import ScriptExecutor


class Executor(ScriptExecutor):
    ext = '.lua'
    name = 'LUA'
    command = 'lua'
    command_paths = ['lua', 'lua5.3', 'lua5.2', 'lua5.1']
    address_grace = 131072
    test_program = "io.write(io.read('*all'))"

    @classmethod
    def get_version_flags(cls, command):
        return ['-v']

Make lua autoconfig work better.
Make lua autoconfig work better.
