0
votes

In the dragon book it is mentioned that "Lexical errors include misspelling of identifiers. e.g. misspelling ellispeSize as elipseSize"

I cannot understand how is it true (that lexical analyzer can indentify misspelled identifiers and cause error). Both ellipseSize and elipseSize are valid lexemes for being identifier. So lexical analysis phase should have no issues with that. Possibly in later phases down the compilation we shall get to know that elipseSize has not been defined ...

I cannot understand how is it true - how what is true, exactly? Are they talking about automatic error corrections for typos during compiles? That book is from a different era where compiles could take hours - no one is thinking along those same lines today, I don't believe. - 500 - Internal Server Error