The Python openqasm3 package gives a permissive flag for parse, which controls the ANTLR error handling strategy and will raise a Python exception on parse failures. It would be nice to do this in openpulse as well -- here parse allows silent failures.