Match maker
      A challenge by
      
        
        Bulmenisaurus
      
    
Description
Given a CSS query, output the unindented html needed that will produce a match.
For example, a.foo>b#bar should produce <a class=‘foo’><b id=‘bar’></b></a>
The html should have full tags, not self closing ones. The query follows the following grammar:
query ::= element (">" element)* element ::= name [id] class* id ::= "#" name class ::= "." name name ::= [a-z0-9]+
However for the test cases you should expect at most 9 levels of nesting elements.
Leaderboard
| Author | Score | ||
|---|---|---|---|
| #1 |  | Jacob-Lockwood | 188 | 
| #2 |  | Mukundan314 | 193 | 
| #3 |  | Bulmenisaurus | 205 | 
| #4 |  | bizy-coder | 209 | 
| #5 |  | MeWhenI | 216 | 
| #6 |  | rucin93 | 279 | 
| #7 |  | XenThe | 318 |