parse: In-progress rewrite to support rule expressions and generate XML directly from parser