It's not as simple as it looks, I actually parse down the entire thing to tokens, and then build it back up, but the tooling already in place handles it seemingly OK.