I am writing down some errors and its type with a reason.If there something wrong please correct it with a valid reason.
1.fi(a==10)
this is not a lexical error, because lexical analyzer cannot tell whether fi is a misspelling of the keyword if or an undeclared function identifier.
2. inz a;
this is also not a lexical error with the same reason as above.All token are valid.
3. int 2ab;
lexical error as 2ab is not a valid identifier.
4. int a#;
lexical error as a# is not a valid token. but this says it is not a lexical error
5.int a2.5c;
I think it is lexical error as a2.5c is not a valid token. but this says it is streams of valid tokens
6.int d=10.10.10
lexical error as invalid num token.