Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

6 Transfer does not happen by chance. Discuss

Answered: 1 week ago

Question

Thui root has one main thick roat.

Answered: 1 week ago