Question: compiler design please solve this project step by step As a term project you will design your own programming language. You can think of any

 compiler design please solve this project step by step As a

compiler design please solve this project step by step

As a term project you will design your own programming language. You can think of any language of your imagination. Your project will consist of a Lexical Analyzer and a Parser. For Lexical Analyzer you will use Flex and for parser Bison. You can find the instructions about downloading Flex and Bison and compiling your lexical analyser and parser and then generating C code in the MS Word document I uploaded to Term Project Folder on BB. In the same folder you can also find two samples: one for a calculator which does arithmetic calculations and a simple parser which parses "for" statements. You need to prepare a Word document, a Power Point Presentation (PPT) and a video for your term project. The video must include a presentation using PPT which displays below info with a voice over in English: 1. Compiling your lexical analyzer using Flex 2. Compiling your parser using Bison 3. Compiling the outputs of the above compilations using C compiler and obtaining an executable C code. 4. Running the executable C code. 5. Writing a sample code with a syntax error in your language 6. Displaying a syntax error to the user 7. Writing a sample code with no errors in your language 8. Not getting any error messages and a running code which does what it is required to do. Include in your Word document and PPT: 1. Lexical analyzer code 2. Parser code 3. Instructions for compiling the lexical analyzer and parser and compilation of the outputs with C compiler. 4. A sample code written in your language and compiling that code with the compiler of your language (as in the video) 5. Youtube path of your video

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!