Fix coding style

This patch adds missing curly brackets to single line if statements in
the compileParser method.