def eval_text(self, text, filename=''): ast = rsl.parse_text(text + '\n', filename) try: rsl.evaluate(self.runtime, ast, self.includes) except SystemExit as e: return e.code
def translate_text(metamodel, s): t = ActionTranslation(metamodel) root = rsl.parse_text(s) strings = t.accept(root) return ''.join(strings).strip('\n ')
def lint_text(self, text, filename=''): ast = rsl.parse_text(text + '\n', filename) try: return rsl.lint_ast(self.metamodel, ast) except SystemExit as e: return e.code
def run(self): rsl.parse_text('', '') build_py.run(self)
def initialize_options(self): import rsl rsl.parse_text('', '') self.main = None self.output = 'gen_erate.pyz'
def run(self): import rsl rsl.parse_text('', '') build_py.run(self)