Show HN: A syntax-diagram generator for rust's macro_rules()
lukaslueg.github.ioTry feeding the Java-ish Rust macro[0] into it, which was featured on HN last week.
> Failed to parse, and I didn't even write an error-handler. Anyway:
> ParseError(None)
tracked in https://github.com/lukaslueg/macro_railroad/issues/5 if anyone cares
do you mean to say there's a rust macro that lets you type java in rust? that's a horrible thing to invent! un-invent! exterminate at once!
There is, sort-of, and the macro appears to kill this tool. ;)
Nothing happens, and I see this in the developer console:
ReferenceError: WebAssembly is not defined
Does this need some kind of special browser?Are you running the latest firefox? Works for me, but I don't see anything special about it.
Yes, I'm using the latest Firefox on my update channel (ESR), namely 52.9.0. It's up to date.
WebAssembly is explicitly disabled on the ESR version of Firefox 52, per https://www.caniuse.com/#search=webassembly, so that would explain that.
I've tried this in Firefox and Chrome both for macOS and Android and it works in all cases.
Too bad you can't do the inverse: graphically lay out a syntax-diagram and get a macro_rules!() block back...