by nicoburns · 8y ago · 0 comments
For example there's a library in Rust which provides a `json` macro with syntax like so:
json!({
"foo": "bar",
"qux": baz
});
where `baz` can be a Rust string or integer. Note: this will typecheck, so if you provide something weird as `baz` then it won't compile, but otherwise the syntax is identical to standard JSON syantax.The initial procedural macro release is in 6.5 weeks. Nom has worked on stable for years.