arturo
arturo copied to clipboard
[VM/lib] Rewrite in a cleaner way
[VM/lib] Rewrite in a cleaner way
https://github.com/arturo-lang/arturo/blob/ce734e7a32c73173910cdf8f533f56be21febe3b/src/vm/lib.nim#L91
const cleanExample = replace(strutils.strip(example),"\n ","\n")
# TODO(VM/lib) Rewrite in a cleaner way
# labels: vm, cleanup
when not defined(WEB):
let b = newBuiltin(n, alias, rule, "[" & static (instantiationInfo().filename).replace(".nim") & ":" & $(static (instantiationInfo().line)) & "] " & description, static argsLen, args.toOrderedTable, attrs.toOrderedTable, returns, cleanExample, proc () =
require(n, args)
184143549f05b284d4017e7954f39cc5b783f02d