Question: SUBJECT: COMPILER CONSTRUCTION(LAB) Make a MINI compiler that takes user source code as input and translate it into intermediate form in three-address code and finally
SUBJECT: COMPILER CONSTRUCTION(LAB)
Make a MINI compiler that takes user source code as input and translate it into intermediate form in three-address code and finally converts into machine code with proper output.
1. Define its language with language constructs with CODE.
2. Define proper dictionary in Lexer and grammar(set of given rules) in Parser with CODE.
3. Semantics should be properly defined with Coding.
4. Finally convert it into sequential form(linearly) with Quadruple OR Triple representation.
5. Output of each phase and answer should be clear and concise. NOTE: Whoever is going to answer this question kindly answer all parts as it is required. It will be highly appreciated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
