bapt 099f74c088 Import libucl into vendor
UCL is heavily infused by nginx configuration as the example of a convenient
configuration system. However, UCL is fully compatible with JSON format and is
able to parse json files.

UCL is used by pkg(8) for its configuration file as well for the manifest format
in packages, it will be used in base for the pkg boostrap (signature checking
and configuration file parsing.)

libucl has been developped and is maintained by vsevolod@
2014-02-23 21:28:28 +00:00

25 lines
490 B
Plaintext

section1 { param1 = value; param2 = value,
section3 {param = value; param2 = value, param3 = ["value1", value2, 100500]}}
section2 { param1 = {key = value}, param1 = ["key"]}
# Numbers
key1 = 1s
key2 = 1min
key3 = 1kb
key4 = 5M
key5 = 10mS
key6 = 10y
# Strings
key1 = "some string";
key2 = /some/path;
key3 = 111some,
key4: s1,
"key5": "\n\r123"
# Variables
keyvar = "$ABItest";
keyvar = "${ABI}$ABI${ABI}${$ABI}";
keyvar = "${some}$no${}$$test$$$$$$$";
keyvar = "$ABI$$ABI$$$ABI$$$$";