We need to have a lexical analyzer and parser (otherwise known as a compiler) capable of generating text-based AST trees (preferably, but not mandatory, binary ones) for a semi-fictional programming language created.
**The Following Describes Part 1 of the Project, it has already been completed:
The program should be able to catch lexical and syntax errors but semantic checking and code generation is NOT needed. It is highly recommended (and will make it much easier for you) that you use Lex and Yacc to generate the program. The final source code should be in C or C++ and compile on a modern Unix compiler.
**This is Part 2, which the bidder is required to do:
The following needs to be added to the first part of the project:
1) Semantic checking
2) Symbol table
3) Three-address intermediate code generation
The compiler will first read the source file and perform lexical and syntax analysis. On the discovery of either a lexical or syntax error of the input source program perform the same operations as in Part A with no error recovery ??" simply abort on first error after printing an error message. If a semantic error is discovered, print an error message describing the error and continue the analysis ??" it is expected that all semantic errors will be found and reported on a single pass. If the input program passes lexical, syntax and semantic analysis, then print the resultant AST for the entire program and generate the complete 3-address intermediate code for the entire program, follow this with a dump of the symbol. All output is written to the specified output file.
**The zip file contains:
1) Detailed specs for part 1
2) Source code to Part 1
3) Detailed specs for part 2
Type compatibility info. and fictional language examples, as well as any other necessary information, will be provided to the winning bidder.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased.