Show HN: A syntax-diagram generator for rust's macro_rules()lukaslueg.github.io 36 pointslukaslueg8 years ago10 commentsSaveHideCopy link On HNComments−dleslie8yTry 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)0: https://gitlab.com/jD91mZM2/jrust/blob/master/src/lib.rs−killercup8ytracked in https://github.com/lukaslueg/macro_railroad/issues/5 if anyone cares−htor8ydo 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!−dleslie8yThere is, sort-of, and the macro appears to kill this tool. ;)−phyzome8yNothing happens, and I see this in the developer console: ReferenceError: WebAssembly is not defined Does this need some kind of special browser?−Something12348yAre you running the latest firefox? Works for me, but I don't see anything special about it.−phyzome8yYes, I'm using the latest Firefox on my update channel (ESR), namely 52.9.0. It's up to date.−LawnGnome8yWebAssembly is explicitly disabled on the ESR version of Firefox 52, per https://www.caniuse.com/#search=webassembly, so that would explain that.−chc8yI've tried this in Firefox and Chrome both for macOS and Android and it works in all cases.−ChickeNES8yToo bad you can't do the inverse: graphically lay out a syntax-diagram and get a macro_rules!() block back...
Comments
Try feeding the Java-ish Rust macro[0] into it, which was featured on HN last week.
0: https://gitlab.com/jD91mZM2/jrust/blob/master/src/lib.rs
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:
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...