acd
1. Design a lexical analyser for given language and the lexical analyser should ignore redundantspaces, tabs and new lines. It should also ignore comments. Although the syntax specification states thatidentifiers can be arbitrarily long, you may restrict the length to…