Question: Test your program using the following Test Source Code as an input files. Run your program twice. First time input file is Test Source Code
Test your program using the following Test Source Code as an input files. Run your program twice. First time input file is Test Source Code 1. Second time input file is Test Source Code 2. If the Test Source Code is generated by the Sample BNF Defined Language display The Test Source Code is correct, otherwise identify the first syntax error and display "The Test Source Code cannot be generated by the Sample BNF Defined Language" V V -> EBNF grammar for Sample BNF Defined Language: 0 {} ; ; ; ; = (*1/} float a b ... Iz | E ^ ^ - ^ ^ Z Test Source Code 1 float samplel 0 { float data; float num; float diff; float data; data = data * num / dif; } Test Source Code 2 float mul (float data1, float number ) { data1 = datal * number; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
