Parser Reference
About 1 minparser
Parser Reference
This section is a glossary of Murex tokens and parser behavior.
Other Reference Material
Language Guides
Language Tour, which is an introduction into the Murex language.
Rosetta Stone, which is a reference table comparing Bash syntax to Murex's.
Builtins, for docs on the core builtins.
Murex's Source Code
The parser is located Murex's source under the lang/
path of the project files.
Pages
- %(Brace Quote)`: Initiates or terminates a string (variables expanded)
- Array (
@
) Token: Expand values as an array - Tilde (
~
) Token: Home directory path variable !
(not): Reads the STDIN and exit number from previous process and not's it's condition"Double Quote"
: Initiates or terminates a string (variables expanded)$variable
: Expand values as a scalar%[]
Create array: Quickly generate arrays%{}
Create object: Quickly generate objects and maps&&
And Logical Operator: Continues next operation if previous operation passes'Single Quote'
: Initiates or terminates a string (variables not expanded)(brace quote)
: Write a string to the STDOUT without new line (deprecated)->
Arrow Pipe: Pipes STDOUT from the left hand command to STDIN of the right hand command<read-named-pipe>
: Reads from a Murex named pipe=>
Generic Pipe: Pipes a reformatted STDOUT stream from the left hand command to STDIN of the right hand command=
(arithmetic evaluation): Evaluate a mathematical function (deprecated)>>
(append file): Writes STDIN to disk - appending contents if file already exists>>
Append Pipe: Redirects STDOUT to a file and append its contents?
STDERR Pipe: Pipes STDERR from the left hand command to STDIN of the right hand command[..range]
: Outputs a ranged subset of data from STDIN[[ element ]]
: Outputs an element from a nested structure[index]
: Outputs an element from an array, map or table{Curly Brace}
: Initiates or terminates a code block|>
(truncate file): Writes STDIN to disk - overwriting contents if file already exists|
POSIX Pipe: Pipes STDOUT from the left hand command to STDIN of the right hand command||
Or Logical Operator: Continues next operation only if previous operation fails