toml
Tom’s Obvious, Minimal Language (TOML)
TOML support within Murex is pretty mature however it is not considered a primitive. Which means, while it is a recommended builtin which you should expect in most deployments of Murex, it’s still an optional package and thus may not be present in some edge cases. This is because it relies on external source packages for the shell to compile.
Example TOML document taken from Wikipedia
# This is a TOML document.
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates
[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
connection_max = 5000
enabled = true
[servers]
# Indentation (tabs and/or spaces) is allowed but not required
[servers.alpha]
ip = "10.0.0.1"
dc = "eqdc10"
[servers.beta]
ip = "10.0.0.2"
dc = "eqdc10"
[clients]
data = [ ["gamma", "delta"], [1, 2] ]
# Line breaks are OK when inside arrays
hosts = [
"alpha",
"omega"
]
toml
application/toml
application/x-toml
text/toml
text/x-toml
Marshal()
SupportedReadArray()
Hook supported albeit TOML doesn’t support naked arraysReadArrayWithType()
Hook supported albeit TOML doesn’t support naked arraysReadIndex()
Works against all properties in TOMLReadNotIndex()
Works against all properties in TOMLUnmarshal()
Supportedcast
): Alters the data-type of the previous function without altering its output[[ Element ]]
): Outputs an element from a nested structureopen
): Open a file with a preferred handlerformat
): Reformat one data-type into another data-typeruntime
): Returns runtime information on the internal state of Murexjson
: JavaScript Object Notation (JSON)jsonl
: JSON Linesyaml
: YAML Ain’t Markup Language (YAML)ReadIndex()
(type): Data type handler for the index, [
, builtinReadNotIndex()
(type): Data type handler for the bang-prefixed index, ![
, builtinReadArray()
(type): Read from a data type one array element at a timeWriteArray()
(type): Write a data type, one array element at a timeReadMap()
(type): Treat data type as a key/value structure and read its contentsMarshal()
(type): Converts structured memory into a structured file format (eg for stdio)Unmarshal()
(type): Converts a structured file format into structured memoryThis document was generated from builtins/types/toml/toml_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 Tue Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.
Current version is 6.4.1005 (develop) which has been verified against tests cases.