LeaVerou / brep

Write batch find & replace scripts that transform files with a simple human-readable syntax
12 stars 0 forks source link

Custom syntax? #2

Closed LeaVerou closed 2 months ago

LeaVerou commented 2 months ago

Currently bafr scripts are based on TOML. If we were willing to parse our own syntax, we could have nice things like:

The obvious downsides are:

Alternatively, we could explore using YAML. I went with TOML to avoid all the weird whitespace sensitivity of YAML, but I just read it can also use {} for scope, so it might be worth another look: https://medium.com/@kasunbg/write-yaml-without-indentation-via-curly-braces-3c05ae8700ce

LeaVerou commented 2 months ago

YAML is now supported since 5ecfe9215227f19ad73fc85a56e2aa503277b486. I don't think the hassle of a custom syntax is worth it, frankly.