# Path: vii/Logger.py
# def debug(str, str2 = ""): logger.debug("%s %s" % (str, str2))
# 
# Path: vii/App.py
# class QuitException(Exception): pass


from .Logger import debug
from .App import QuitException

class Interpreter:
    def interpret(self, string):
        parts = string.split()
        action = self.actionManager.action(parts[0], parts[1:])
        if action: action.act()

class AbstractInterpreterAction:
    def act(self): pass

class EditAction(AbstractInterpreterAction):
    def act(self):
        try:
            address = self.command[0]
            self.window.buffer.read(address)
        except IndexError:
            pass

class WriteAction(AbstractInterpreterAction):

# Path: vii/Logger.py
# def debug(str, str2 = ""): logger.debug("%s %s" % (str, str2))
# 
# Path: vii/App.py
# class QuitException(Exception): pass


# Path: vii/Interpreter.py
from .Logger import debug
from .App import QuitException


class Interpreter:
    def interpret(self, string):
        parts = string.split()
        action = self.actionManager.action(parts[0], parts[1:])
        if action: action.act()

class AbstractInterpreterAction:
    def act(self): pass

class EditAction(AbstractInterpreterAction):
    def act(self):
        try:
            address = self.command[0]
            self.window.buffer.read(address)
        except IndexError:
            pass

class WriteAction(AbstractInterpreterAction):

    def act(self):