{ Curly Brace }
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}
{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.
Curly braces can work over multiple lines
» out {foo
» bar}
{foo
bar}
Curly braces can be used to terminate the parsing of the command name and/or parameters too:
if{true}{out Yipee}
Curly braces can be nested:
» out {{foo} bar}
{{foo} bar}
Some builtins (like out
) also support infixing using the curly brace. eg
out "{GREEN}PASSED{RESET}"
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.
set
): Define a variable (typically local) and set it’s valueerr
): Print a line to the stderrout
): Print a string to the stdout with a trailing new line charactertout
): Print a string to the stdout and set it’s data-type"Double Quote"
: Initiates or terminates a string (variables expanded)%(Brace Quote)
: Initiates or terminates a string (variables expanded)'Single Quote'
: Initiates or terminates a string (variables not expanded)(brace quote)
: Write a string to the stdout without new line (deprecated)@Array
Sigil: Expand values as an arraystring
(stringing): string (primitive)~
Home Sigil: Home directory path variableThis document was generated from gen/parser/codeblock_doc.yaml.
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 Sat Nov 23 00:50:15 UTC 2024 against commit 69c17da69c17da3bd9db98ca508f6a03a402f074ee24cec.
Current version is 6.4.0375 (develop) which has been verified against tests cases.