Write a parser of the rewritten grammar using BYACC/J. Once you have built your parser, you should be able to process programs written in the language described in the file. When BYACC finds input that doesn't match the grammar,, it automatically terminates with the message 'Syntax error'. You will need to write an error routine (yyerror) that also prints out the line number before this termination, and a main method that read a program from a file.
Skills Required