New configuration syntax

4 views
Skip to first unread message

x86

unread,
Jun 6, 2012, 8:34:05 AM6/6/12
to frozend
Instead of verbose, json alike syntax new one was made. It is very
simple and speeds up writing of configuration files.
See examples/*.fz files for more details.
For now there is two main statements:
- local somename = "some data"
- somename.action(parameters)

Data definition splits into simple data and complex one.
Simple data:
- "string"
- raw_t : "string"
- sometype : { a = "12", b = "34" }

Complex data represent layered data:
- format ~ record_t : { separator = "Z" } > "abZcdZefZ"
Where "format ~" is triplet which use simple data (record_t in this
case) to represent data. Format triplet change format of underlying item
using given template data. Another example of triplet is key~ which
change key of request from given key to value returned by slave data.

More examples and full documentation is on the way.
Reply all
Reply to author
Forward
0 new messages