murex Shell Docs

Data-Type Reference

This section is a glossary of data-types which murex is natively aware.

Most of the time you will not need to worry about typing in_murex_ as the shell is designed around productivity as opposed to strictness despite generally following a strictly typed design. Examples of this are:

  1. adding numbers:

      » let a=1  # define 'a' as number
      » let b=1  # define 'b' as number
      » = a+b
      2

    (returns '2' as both $a and $b are numbers)

  2. adding strings:

      » set a=1  # define 'a' as string
      » let b=1  # define 'b' as number
      » = a+b
      11

    (returns '11' as $a is string so values are concatenated)

Definitions

For clarity, it is worth explaining a couple of terms:

  1. "Data-types" in murex are a description of the format of data. This means that while any stdio stream in UNIX will by "bytes", murex might label that data as being a JSON string or CSV file (for example) which means any builtins that parse that stdio stream, for example to return the first 8 items, would need to parse those types differently. Thus a "data-type" in murex is actually more than just a description of a data structure; it is a series of APIs to marshall and unmarshall data from complex file formats. This enables you to use the same command line tools to query any type of output.
  2. "Primitive" data-types refer to types that are the required by murex to function. These will be int, float / number, bool, string, generic, json, and null. All other data-types are optional albeit still recommended (unless described otherwise).

Feature Sets

Since not all data formats are equal (for example the TOML file format doesn't support naked arrays where as JSON does), you may find some features missing in some data-types which are present in others. If in doubt then refer to the manual here or check the API manual for more details about specific hooks.

Pages

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Sep 28 06:11:44 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.