Open ghost opened 8 years ago
birthday = "December 27, 1904" : Date
I thought about this, this is good idea; but that scares me off:
[a_section]
a_variable = "a very , very long string ....... ......... ............... .............. " : sometype
beyond right edge of the screen
A "super format capable of expressing any data structure easily" is known and that is TreeDef ;)
So let INISON be simpler.
A long base64 string of an image, or something else?
Remove tagging? :smiling_imp: Let the parser choose the best value type for specific keys, through some hooks.
There is an extreme TreeDef-like format with extreme YAML style: https://oli-lang.github.io/
Remove tagging?
text mode ? DATE"" ?
extreme YAML style
Thanks, interesting. Yamlier than yaml...
If there is no custom parser for text blocks, text mode is just a special syntax for multiline strings, list mode is another syntax for arrays.
Date? Use a funtion to compare date strings; use parser postprocess hooks. Normally there are just a few dates in a file. Other types? Less used. Complex data types like RegExp? Use strings, only converted to regexps when needed. Tags everywhere? Choose a better DSL.
Agreed.
As for tags and other my needs, TreeDef suits them completely.
I think a super ini-style format capable of expressing any data structure easily is not what I really want. I like the flat looking of ini files. It is also easy to edit with any text editor, the best format for simple configurations.
Here is using a completely line-based format: