Don't recompile the grammar when it has not changed.
Fixes #51