murex Shell Docs

Command Reference: source

Import murex code from another file of code block


source imports code from another file or code block. It can be used as either an "import" / "include" directive (eg Python, Go, C, etc) or an "eval" (eg Python, Perl, etc).


Execute source from STDIN

<stdin> -> source

Execute source from a file


Execute a code block from parameter

source: { code-block }


Execute source from stdin:

» tout: block { out: "Hello, world!" } -> source
Hello, world!

Execute source from file:

» tout: block { out: "Hello, world!" } |>
» source:
Hello, world!

Execute a code block from parameter

» source { out: "Hello, world!" }
Hello, world!


See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Oct 19 06:12:17 UTC 2020 against commit 81299cb81299cbf18c05a5d38bdde93a5f5a3c5ff005b27. Downloadable murex binaries are also built weekly. Current version is 1.0.0000 BETA which has been verified against tests.