Flex file..
Click here to download Regular Exp file...
Bison Grammar..
Click here to download Bison Grammar
Output::
Error test output: