Add support for parsing template expressions.

This is the incremental parsing side of the template parsing work.