- Write a macro that takes an arbitrary number of elements and outputs an unordered HTML list in a literal string. For instance, html_list!([1, 2]) => <ul><li>1/<li><li>2</li></ul>.
- Write a macro that accepts the following language:
language = HELLO recipient; recipient = <String>;
For instance, the following strings would be acceptable in this language:
HELLO world! HELLO Rustaceans!
Make the macro generate code that outputs a greeting directed to the recipient.
- Write a macro that takes either of these two arbitrary sequences:
1, 2, 3 1 => 2; 2 => 3
For the first pattern, it should generate a vector with all the values. For the second pattern, it should generate a HashMap with key-value pairs.