is there a way to know where did the error happened in the parser ,it means which token did that error and which line, I don’t know how to use yylineno which can be easily used in the lex file ?
thanks
is there a way to know where did the error happened in the parser
Share
You should enable debug traces in both flex (
%option debugand setyy_flex_debugto 1) and the parser (%debugand setyydebugto 1). See their documentations.