Use Lex and Yacc to construct a translator from modified tiny BASIC ; the translator will parse input code according to the given grammar and generate C++ code which you be able to compile and test. Note that the link describes a tiny BASIC compiler. Your project is instead a front end for a compiler, using C++ as intermediate code.