Question: 1. Write the EBNF rules for the following program (10 Points): void Multiply int Num1; int Num2; int result; result Num1+ Num2; 2. Give the
1. Write the EBNF rules for the following program (10 Points): void Multiply int Num1; int Num2; int result; result Num1+ Num2; 2. Give the following C++/Java function (10 points): int Add (int MyTemp, int Num1) MyTemp MyTemp+ Num1; return MyTemp; List all lexemes and tokens
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
