I have a parser with me generated from yacc/lex. It is working fine for all the rules I have set except one case.
If file is empty which this parser is parsing it gives error. I want to add rule so that it does not give error when file is empty. I have not added any checks for that in either of my .l/.y file.
How can this be done with YACC/LEX?
Thanks in advance !!