def __init__(self, model): self.model = model self.interpreter = interpreters.GoInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._go = "go"
def __init__(self, model): self.model = model self.interpreter = interpreters.HaskellInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self.exec_path = None
def __init__(self, model): self.model = model self.interpreter = interpreters.RubyInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._ruby = "ruby"
def __init__(self, model): self.model = model self.interpreter = interpreters.RInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._r = "Rscript"
def __init__(self, model): self.model = model self.interpreter = interpreters.DartInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._dart = "dart"
def __init__(self, model): self.model = model self.interpreter = interpreters.PhpInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._php = "php"
def __init__(self, model): self.model_name = "score" self.model = model self.interpreter = RubyInterpreter() assembler_cls = get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self.script_path = None
def __init__(self, model): self.model_name = "score" self.model = model self.interpreter = interpreters.CInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self.exec_path = None
def __init__(self, model): self.model = model self.interpreter = interpreters.PowershellInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._powershell = ("powershell" if platform.system() in ('Windows', 'Microsoft') else "pwsh")
def __init__(self, model): self.model_name = "score" self.model = model self.interpreter = PowershellInterpreter() assembler_cls = get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble() self._powershell = "powershell" if system() in { 'Windows', 'Microsoft' } else "pwsh" self.script_path = None
def _export(model, interpreter): assembler_cls = assemblers.get_assembler_cls(model) model_ast = assembler_cls(model).assemble() return interpreter.interpret(model_ast)
def __init__(self, model): self.model = model self.interpreter = interpreters.VisualBasicInterpreter() assembler_cls = assemblers.get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble()
def __init__(self, model): self.model = model self.interpreter = CSharpInterpreter() assembler_cls = get_assembler_cls(model) self.model_ast = assembler_cls(model).assemble()
def assemble(self): # import here to avoid circular import error from m2cgen.assemblers import get_assembler_cls base_model = self._get_base_model() return get_assembler_cls(base_model)(base_model).assemble()
def assemble(self): base_model = self._get_base_model() return assemblers.get_assembler_cls(base_model)(base_model).assemble()