~emersion/scfg

f95c46064c46e1612bdc5359c9b91e378c087c86 — Simon Ser 7 months ago 2824ecc
Add example
1 files changed, 25 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +25 -0
@@ 2,6 2,31 @@

A simple configuration file format.

The config file has one directive per line. Directives have a name, followed
by parameters separated by space characters. Parameters may be quoted.
Directives may have children in blocks delimited by "{" and "}". Lines
beginning with "#" are comments.

Example:

```
train "Shinkansen" {
	model "E5" {
		max-speed 320km/h
		weight 453.5t

		lines-served "Tōhoku" "Hokkaido"
	}

	model "E7" {
		max-speed 275km/h
		weight 540t

		lines-served "Hokuriku" "Jōetsu"
	}
}
```

## Specification

Grammar in [ABNF]: