Let's throw an exception on lemon syntax and parse errors

This way you won't end up with compiling essentially empty shared libraries.