Settings

Theme

Show HN: A syntax-diagram generator for rust's macro_rules()

lukaslueg.github.io

36 points by lukaslueg 8 years ago · 10 comments

Reader

dleslie 8 years ago

Try 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

phyzome 8 years ago

Nothing happens, and I see this in the developer console:

  ReferenceError: WebAssembly is not defined
Does this need some kind of special browser?
ChickeNES 8 years ago

Too bad you can't do the inverse: graphically lay out a syntax-diagram and get a macro_rules!() block back...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection