The function unparseGrammar() works (still should add corner case 0 len lists). Test for multple measures.