ok , initialy 'whiel' will be treated as a identifier and a token is created . but when compiler will proceed furthur it will be caught by syntax analyer or by semantic analyser ?? plz also explain if it will declared syntax error then for which reasons or if it will be declared as semantic error then for which reason ?
for example here in case of syntax error the compiler says there is no production of kind 'whiel()' to parse it .
and in case of semantic error compiler can say type is not declared for identifer ' whiel'