@tyil @sa0bse I dunno, I think TOML is a big old flop tbh. For unstructured data it's clearly better than INI, but not by a lot and it arrived 20 years too late to supplant it; and for structured data it's clearly worse than other formats. It's only useful somewhere in the middle and that isn't often and it's annoying when you stray outside of the lines
@sa0bse INI is ill defined. A good INI parser will not try to interpret booleans.
@sa0bse in my opinion, INI is not a format which lends itself well to being extended for structured data
@sa0bse yeah, reminded me of how godawful YAML is and how there really isn't anything better
@byllgrim there is not more than one way of doing dicts here, but rather some elements of the dict syntax are optional
@closeneough yeah, open question. Will think on it, it's nontrivial
@Wolf480pl yeah, decided that braces were worth it for the simplified context-free grammar they come with
@closeneough updated example is here: https://paste.sr.ht/%7Esircmpwn/87ae4eda306dca79909f177161d31c10ac974cc3
There's only one way to do maps: JSON style except commas are optional (assuming whitespace disambiguates) and "" is optional around keys.
@Wolf480pl it's what YAML ought to have been, latest draft here: https://paste.sr.ht/%7Esircmpwn/87ae4eda306dca79909f177161d31c10ac974cc3
@cjd today in things that totally don't work and provide a false sense of security
@ky0ko I'll make it easy for you:
@ky0ko that's a z80 instruction first and foremost, I don't know of any games which would find it useful
@ky0ko not P/V?
@ky0ko did you also implement all of the undefined instructions, and the behavior of flag register bits 3 and 5? Games in the wild depend on these behaviors
Now context-free, an ambiguity fixed, and hex/bin/octal integers:
I may implement a parser for this on the train to Tokyo
Here it is again with a more conservative departure from JSON, a grammar, and the diff from JSON's grammar:
@opal more like adding complexity to reduce the noise in my inbox
FLOSS advocate, programmer, sysadmin, language enthusiast, amateur astronomer, doesn't want to talk to you about cryptocurrency, etc.
cmpwn.com is a private Mastodon instance for friends of SirCmpwn.