SML
SML
is a simple markup language. It is designed to convert human readable information into
Rust data-structures.
Data Format
- Indentation has meaning and is 4 spaces, relative to the top key.
- All values must be double quoted.
- Every key/value combination must be nested in a key. For example
hobbit: "Frodo"
by itself is invalid. It can be written:
hobbit:
name: "Frodo"
- Separation of lines has meaning.
- Keys may not include
:
. - Double quotes in values must be escaped using
\"
. - Everything after the second double quote is ignored (and can be used for commenting).
- There can be an arbitary amount of whitespace and returns before the first key and after the last key.
Example
use ;