Improved performance.
Eliminated trivial productions from the abstract syntax tree before running, to significantly improve performance.