murex Shell Docs

Parser Reference: Curly Brace ({, }) Tokens

Initiates or terminates a code block


Curly braces are used to denote the start and end of a code block. Like with the single quotation marks ('), any code inside a curly brace is not parsed. Also unlike any other quotation tokens, the curly brace is included as part of the parsed string.

» out: {example}

Also like the brace quote ((, )), the curly brace character is only recognized as a curly brace token if it is the start of a parameter.

Curly braces are also used for other fields besides code blocks. For example inlining JSON.


Multiline Blocks

Curly braces can work over multiple lines

» out: {foo
» bar}

Code Golfing

Curly braces can be used to terminate the parsing of the command name / start the parsing of the first parameter however each new parameter would still need to be separated by whitespace:

# Valid
if{true} {out: "Yipee"}

# Invalid
if{true}{out: "Yipee"}

ANSI Constants

Some builtins (like out) also support infixing using the curly brace. eg


This is a separate layer of parsing and happens at the parameter level for specific builtins which opt to support ANSI constants. See the ANSI Constant user guide (link below) for more information on supporting builtins and which constants are available.

See Also

This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Thu Oct 13 08:08:18 UTC 2022 against commit ed6b6fced6b6fc609f4be93c5d3348695a762facfecf48f.

Current version is 2.11.2200 which has been verified against 16798 tests cases.