by dartos · 1y ago · 0 comments
JSON and xml are both data representation formats, but the code snippets in the article seem more like a declarative language.
You could make a declarative language using JSON semantics, but maybe they wanted something more bespoke.
it’s also super duper easy to write an s-expression parser
If you look at typical SBPL source code you'll see it tends to contain a mix of straightforward, declarative `(allow …)` policies and custom functions/macros used to simplify repeated patterns. See https://github.com/WebKit/WebKit/blob/11b5279aec6113c661dac3..., for example.