I am using JFlex + BYACC/J to parse a small language.
Everything works but the error message for any syntax error (yyerror) is simply "Error: syntax error".
Is there any (easy) way of generating more verbose error messages? The -v (verbose) flag only generates a y.output file with a description of the state machine.
Goal is to have error messages such as: "Expected X before Y but found Z" or something similar.
EDIT (w.r.t comments):
Above goal can be achieved in Bison but it does not solve my problem with BYACC/J