Let S be the start symbol.
The productions are:
S -> N { '.' N}
N -> D {D}