Esempio n. 1
0
    def run(self, context, args, kwargs, opargs):
        if len(args) < 1 or not isinstance(args[0], Quote):
            raise CommandException("Provide code fragment to evaluate")

        ast = dump_ast(args[0].body)
        tid = context.submit_task('cli.eval.ast', ast)
        return TaskPromise(context, tid)
Esempio n. 2
0
    def run(self, context, args, kwargs, opargs):
        if len(args) < 1 or not isinstance(args[0], Quote):
            raise CommandException("Provide code fragment to evaluate")

        ast = dump_ast(args[0].body)
        tid = context.submit_task('cli.eval.ast', ast)
        return TaskPromise(context, tid)
Esempio n. 3
0
 def parse(self, code):
     return dump_ast(parse(code, '<remote eval>'))
Esempio n. 4
0
 def parse(self, code):
     return dump_ast(parse(code, '<remote eval>'))