Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

TOML

< >

TOML, aka Tom's Obvious, Minimal Language, is an open source data notation created in 2013 by Tom Preston-Werner.

#51on PLDB 11Years Old 8Repos
Download source code:
git clone https://github.com/toml-lang/toml
Homepage · Leet Sheet · REPL · Source Code · Spec · Docs

Tom's Obvious, Minimal Language


Example from Riju:
output = "Hello, world!"
Example from hello-world:
Hello = "World"
Example from Linguist:
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. [[projects]] branch = "master" name = "golang.org/x/net" packages = ["context"] revision = "2491c5de3490fced2f6cff376127c667efeed857" [[projects]] branch = "v2" name = "gopkg.in/tomb.v2" packages = ["."] revision = "d5d1b5820637886def9eef33e03a27a9f166942c" [solve-meta] analyzer-name = "dep" analyzer-version = 1 inputs-digest = "841a246fc6ac2a2ccb2ae3907a0ff3432f13e3fc44bb3c09388b0c931ef7d641" solver-name = "gps-cdcl" solver-version = 1

Language features

Feature Supported Example Token
Integers # \d{4}-\d{2}-\d{2}(?:T| )\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})
Floats # (\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?
Comments # A comment
Line Comments # A comment #
Semantic Indentation X
View source
- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Part of the World Wide Scroll