The Gateway to Computer Science Excellence
+2 votes
286 views

 

in Compiler Design by Loyal (6.9k points) | 286 views
0
Please explain when Lexical error generates and when Syntax error generates i usually get confuse in between both :(
0
Ok brother so only in these 6 types lrxical error occurs ?
+1
c?
0

Shaik Masthan bro can you please post all images for lexical, syntax, symentaic error conditions if you have in your notes

0
Yeah brother that would be really helpful
+1

2 Answers

+3 votes

int a b;= long identifier it can detect during lexical analysis

int 1ab2;=I'll formed numeric literal it can detect during lexical analysis

in t a b;= long identifier it can detect during lexical analysis

D) All the above

by Active (1.7k points)
0 votes
C will be right option

<1ab2> is invalid token as it is neither keyword nor can be an identifier as 1st  character is a number.
by (169 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,583 answers
195,786 comments
101,827 users