462 views

2 Answers

1 votes
1 votes
I think since c is case sensitive Main and Else will give lexical error.

Hence 2 lexical error.
0 votes
0 votes
6 lexical errors 4 { brackets one misplaced semicolon and 1 missing first bracket.

Related questions

416
views
2 answers
1 votes
lovish_bhatia asked Sep 12, 2023
416 views
Consider the following statements:(A) LL (k) grammars have one to one correspondence with DCFLs.(B) LR (k) grammars have one to one correspondence with CFLs. A is true but B is falseA is false but B is trueBoth are FalseBoth are True
134
views
0 answers
0 votes
Ebrahim asked May 5
134 views
Q4. Generate target code for the following source language statements : x = a + b + c * (d-e) 
95
views
0 answers
0 votes
Ebrahim asked May 5
95 views
Q2. Implement the statement a:= -b + c*(d-e) + f * (c*(d-e)) into following Intermediate code representation.  a) Quadrupleb) Triple c) Indirect Triple Solve the above Question like this example
271
views
1 answers
0 votes
Ebrahim asked Jan 12
271 views
Q1. For the following grammar N -> AB | BA A -> a | CAC B -> b | CBC C -> a | b Find the FIRST and FOLLOW