Hello, forgive me for asking a possibly elementary question, but I am confused on how to get my on_someTarget methods to report an error (similar to yyerror) when an invalid input is passed into the parser. Ideally I want the code to print a message when there is an error to let the user know when the input does not follow the grammar rules. I need an answer pretty fast so if anyone can shed some light on how this works that would be wonderful.
Hello, forgive me for asking a possibly elementary question, but I am confused on how to get my on_someTarget methods to report an error (similar to yyerror) when an invalid input is passed into the parser. Ideally I want the code to print a message when there is an error to let the user know when the input does not follow the grammar rules. I need an answer pretty fast so if anyone can shed some light on how this works that would be wonderful.