murex Shell Docs

Command Reference: source

Import murex code from another file of code block

Description

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).

Usage

Execute source from STDIN

<stdin> -> source

Execute source from a file

source: filename.mx

Execute a code block from parameter

source: { code-block }

Examples

Execute source from stdin:

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

Execute source from file:

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

Execute a code block from parameter

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

Synonyms

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Aug 3 06:12:53 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.