TOML: Tom's Obvious Minimal Language
TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages. TOML aims to be a minimal configuration file format that: TOML already has implementations in most of the most popular programming languages in use today: C, C#, C++, Clojure, Dart, Elixir, Erlang, Go, Haskell, Java, JavaScript, Lua, Objective-C, Perl, PHP, Python, Ruby, Rust, Scala, Swift, … and plenty more. TOML thinks all config files should support comments. There are four ways to express strings: basic, multi-line basic, literal, and multi-line literal. Basic strings are surrounded by quotation marks: Multi-line basic strings are surrounded by three quotation marks on each side and allow newlines. Include a line ending backslash to automatically trim whitespace preceding any non-whitespace characters: str2 becomes "The quick brown fox jumps over the
[Tom's Obvious Minimal Language] A config file format for humans. TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages. # This is a TOML document title = "TOML Example" [owner] name = "Tom Preston-Werner" dob = 1979-05-27T07:32:00-08:00 [database] enabled = true ports = [ 8000, 8001, 8002 ] data = [ ["delta", "phi"], [3.14] ] temp_targets = { cpu = 79.5, case = 72.0 } [servers] [servers.alpha] ip =…
saved by
related reading
- Nix language basics — nix.dev documentationnix.dev
- Home ⚡ Zig Programming Languageziglang.org
- The Most Elegant Configuration Languagechshersh.com
- Command Line Interface Guidelinesclig.dev
- Build Your Own Databasenan.fyi
- What is YAML? The YML File Formatfreecodecamp.org
- A half-hour to learn Rustfasterthanli.me
- GitHub - ATX24/baml-tvg: The AI framework that adds the engineering to prompt engineering (Python/TS/Ruby/Java/C#/Rust/Go compatible) · GitHubgithub.com
- The yaml document from hellruudvanasseldonk.com
- Programming Languages - Hyperpolyglothyperpolyglot.org
- Darklangdarklang.com
- LinkML at a glance - linkml documentationlinkml.io