0 0 votes what is the difference between lexical error and syntax error? Compiler Design compiler-design lexical-analysis + – Mohit Aggarwal 2.6k views answer comment Share Follow Print See 1 comment 1 1 comment reply anon1 commented Dec 1, 2021 reply Follow flag Difference between Lexical Analysis and Syntax Analysis | Electricalvoice 0 0 replyShare Please log in or register to add a comment.
0 0 votes A lexical error can be error which is encountered by lexical analyser at the time of scanning the stream of tokens. Whereas the syntactical error is related to validity of the tokens (whether the generated tokens are valid keywords or not). Correct me if I’m wrong ;) Vishnu__ answered Jul 7, 2022 Vishnu__ comment Share Follow 0 reply Please log in or register to add a comment.