The above diagram is Transition Diagrams for identifiers. As we can see that the identifier is said to be accepted if it starts with a letter and ends with a valid delimiter, which includes blank symbol, arithmetic, logical operator, left parenthesis, right parenthesis, +, :, ; etc.
Now say i declare an identifier int 4n; I understand that this (4n) is not a valid identifier as it starts with a number..
Now say i declare another identifier int n+ ; Does lexical analyzer accept it? I know that it will give compilation error but that is not my interest, i solely want to know will this be accepted by the lexical analyzer or not?
P.S→ I think it will because identifier ends with a delimiter and + is a valid delimiter and the error in declaration will not be detected at this stage...