This document contains code written in C++ and Java to generate code that adds two numbers. It takes user input for the class name, variable names, and object name. The C++ code generates a class with getinput() and addnos() methods to accept input and output the sum. The Java code generates a similar class within a main method. The document also contains code for lexical analysis that uses states to identify keywords, identifiers, operators, and constants in a given string.