Start to factor out generation code.
Basic parsing of inline expressions.