Bases: InterpreterFunctions
Source code in xdsl/interpreters/printf.py
| @register_impls
class PrintfFunctions(InterpreterFunctions):
@impl(PrintFormatOp)
def run_println(
self, interpreter: Interpreter, op: PrintFormatOp, args: tuple[Any, ...]
):
print(op.format_str.data.format(*args), file=interpreter.file, end="")
return ()
|
run_println(interpreter: Interpreter, op: PrintFormatOp, args: tuple[Any, ...])
Source code in xdsl/interpreters/printf.py
| @impl(PrintFormatOp)
def run_println(
self, interpreter: Interpreter, op: PrintFormatOp, args: tuple[Any, ...]
):
print(op.format_str.data.format(*args), file=interpreter.file, end="")
return ()
|