Exemple #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)
Exemple #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)
Exemple #3
0
 def parse(self, code):
     return dump_ast(parse(code, '<remote eval>'))
Exemple #4
0
 def parse(self, code):
     return dump_ast(parse(code, '<remote eval>'))