I wrote a program to format json! macros
First parses the original input tokenstream into a syn tree,
then dump the parsed syn tree to json string.
Then write it to a specific location in the. rs file.
Not fast, but use syn as parser.
I wrote a program to format json! macros
First parses the original input tokenstream into a syn tree,
then dump the parsed syn tree to json string.
Then write it to a specific location in the. rs file.
Not fast, but use syn as parser.