Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
/ AIR Public archive

Subset of TOML with fantastic comment support & user friendlyness

License

Notifications You must be signed in to change notification settings

TECHNOVE/AIR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIR

Subset of TOML.

Features

Comments for everyone

# This is a comment
# that spans multiple lines
# and is tied to an empty section, because comments can't exist by themselves
[_head]

Lists

The only requirement for lists is that each value is on a different line, as well as the ending bracket.

[section]
  list = [
    "foo",
    "bar",
    "hello",
    "world",
  ]

Sections and Values

# Accessible with foo.bar
[foo]
  # nicely indented!
  bar = "foobar"

Example of syntax which is not allowed:

# this is not allowed, all values must be in sections
foo = "bar"

# dot syntax is not supported either
foo.bar = "foobar"

# a section can only contain values
[foo]
  [bar]
    foobar = "foobar"

These limitations are purposeful. Most user facing configurations do not need to be overly complicated with multiple tiers of objects.

Flexible Parser

[section]

value="hello"


Will automatically be fixed as to maintain a consistent style:

[section]
  value = "hello"

Easily Updatable

Adding new comments/sections/values is as easy as trying to retrieve them, and AIR will automatically merge your new comments/sections/values with the existing configuration. This allows users to easily add their own comments and placeholder sections as needed.

Future Features

  • Ability to deprecate sections/values by commenting them

About

Subset of TOML with fantastic comment support & user friendlyness

Resources

License

Stars

Watchers

Forks

Languages