Created
March 17, 2016 23:29
-
-
Save dginev/2a93ba5f28967c0ca20f to your computer and use it in GitHub Desktop.
Mocks for DefConsturctors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Old style: | |
DefConstructor!("\emph{}", "<ltx:emph>#1</ltx:emph>"); | |
// New style: | |
DefConstructor!("\emph{}", element!("ltx:emph", arg!(1))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that looks doable, but if you need to compile the closure at compile time, you want to look at syntax plugins for rustc, this may be interesting