Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

UCG

< >

UCG, aka Universal Configuration Grammar, is a data notation created in 2017 by Jeremy Wall.

#1469on PLDB 7Years Old
Download source code:
git clone https://github.com/zaphar/ucg

UCG is a universal grammar for configuration. UCG's goal is not to define a configuration format like JSON, YAML, or TOML. It is not intended to replace the other serialization formats. Instead it is intended to provide a common grammar for generating those formats.


Example from the web:
let db_confs = import "db/mysql/hosts.ucg"; let consul_hosts = import "services/consul/hosts.ucg".host_pool; let conf = { port = 8888, addr = "0.0.0.0", db = { host = db_confs.host_pool.addr, port = db_confs.host_pool.port, database = "myservicedb", }, config_svc = consul_hosts.url, }; out json conf;

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll