Currently the `@rulecatch` named action is only implemented for parsers in the Java target. These could be implemented for lexers as well.