in Compiler Design retagged by
331 views
0 votes
0 votes
The given statement has what type of error ?

in /* declare variable */ x;
in Compiler Design retagged by
331 views

1 Answer

1 vote
1 vote
Best answer
Should be syntax error.

lex phase treats misspelled keyword as id.

http://dragonbook.stanford.edu/lecture-notes/Stanford-CS143/03-Lexical-Analysis.pdf
selected by