Ejemplo n.º 1
0
    def _compile(self):
        '''Compiles the Pokescript, returns a unrelated to original source scriptgroup.'''
        script = self.mainview.getScript()

        print("---------------------")
        print("Compiling")

        try:
            c = ScriptParser(self.rom.getScriptLang())
            c.parselines(script.split("\n"), None)
            print("> Compiling was succesful!")
            return c.scriptgroup()

        except Exception as e:
            print("> Someting went wrong:")
            print(str(e))
            raise e
Ejemplo n.º 2
0
 def _compile(self):
     '''Compiles the Pokescript, returns a unrelated to original source scriptgroup.'''
     script = self.mainview.getScript()
     
     print("---------------------")
     print("Compiling")
     
     try:
         c = ScriptParser(self.rom.getScriptLang())
         c.parselines(script.split("\n"), None)
         print("> Compiling was succesful!")
         return c.scriptgroup()
     
     except Exception as e:
         print("> Someting went wrong:")
         print(str(e))
         raise e