Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 videoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started