retagged by
2,585 views

1 Answer

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 ;)
Position:
Show:

Related questions

11 11 votes
6 6 answers
12.1k
12.1k views
Shubhanshu asked Jan 31, 2018
12,103 views
int main() { int 1a, b; Printf("\nGate 2018"); Printf("%d",x); }How many types of error are there in this code?
6 6 votes
7 7 answers
5.3k
5.3k views
Na462 asked Oct 5, 2018
5,339 views
7 7 votes
4 4 answers
4.5k
4.5k views
itsvkp1 asked Nov 1, 2017
4,468 views
if there is miss spelling in some keyword in a program then this misspelled keyword will be treated as lexical errors or it will be treated as a new identifier and accept...
2 2 votes
1 1 answer
2.3k
2.3k views
Manu Thakur asked Sep 26, 2017
2,266 views
This screenshot is token from the book Ullman,How can following be a lexical error? because "elipseSize" should have a token recorded as an identifier.