Created a grammar file consisting of rules and created a lexer and parser for analysis and checking for correctness of the sentences.
Input would be of this format INTEGER A INPUT A PRINTLN (A) END
In the console Output would be: Enter value for A : 5 5