Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged lexical-analysis
3
votes
1
answer
1
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 26
A lexical analyzer uses the following patterns to recognize four tokens $\textsf{T1, T2, T3},$ and $\textsf{T4}$ over the alphabet $ \{a,b,c\}.$ Rule1: aa*b*c* { print ( T1 ); } Rule2: c { print ( T2 ); ... never be used? Note that the analyzer outputs the token that matches the longest possible prefix. Rule$1$ Rule$2$ Rule$3$ Rule$4$
GO Classes
asked
in
Compiler Design
Jan 13
by
GO Classes
568
views
goclasses2024-mockgate-11
goclasses
compiler-design
lexical-analysis
compiler-tokenization
multiple-selects
1-mark
0
votes
1
answer
2
Compiler-design
Q1. For the following grammar N -> AB | BA A -> a | CAC B -> b | CBC C -> a | b Find the FIRST and FOLLOW
Ebrahim
asked
in
Compiler Design
Jan 13
by
Ebrahim
129
views
compiler-design
syntax-directed-translation
lexical-analysis
ullman
parsing
0
votes
1
answer
3
Compiler Design
Like Example Above please answer this question Q5. Implement a+b*(c+d)-e/f into: a). Quadruples. b). Triples. c). Indirect triples.
Ebrahim
asked
in
Compiler Design
Dec 18, 2023
by
Ebrahim
225
views
compiler-design
syntax-directed-translation
lexical-analysis
parsing
0
votes
1
answer
4
compiler Design
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c + d t3 : = e - t2 t4 : = t1 - t3
Ebrahim
asked
in
Compiler Design
Dec 18, 2023
by
Ebrahim
242
views
compiler-design
syntax-directed-translation
lexical-analysis
parsing
1
vote
1
answer
5
Errors
How to differentiate between Lexical, semantic and syntax error from a given code snippet. Why is this lexical error and not syntax error? $ y = 0x5i; $
Mrityudoot
asked
in
Compiler Design
Nov 12, 2023
by
Mrityudoot
216
views
compiler-design
lexical-analysis
made-easy-test-series
1
vote
2
answers
6
Unacademy Compiler Design Workbook
Consider the following statements: (A) LL (k) grammars have one to one correspondence with DCFLs. (B) LR (k) grammars have one to one correspondence with CFLs. A is true but B is false A is false but B is true Both are False Both are True
lovish_bhatia
asked
in
Compiler Design
Sep 12, 2023
by
lovish_bhatia
341
views
compiler-design
syntax-directed-translation
lexical-analysis
context-free-grammar
context-free-language
1
vote
2
answers
7
Unacademy Compiler Design Workbook
Conisder the following program: Main() { int x = 10; If (x<20 ; Else y = 20; } When lexical analyzer scanning the above program, how many lexical errors can be produced?
lovish_bhatia
asked
in
Compiler Design
Sep 12, 2023
by
lovish_bhatia
295
views
compiler-design
lexical-analysis
syntax-directed-translation
0
votes
2
answers
8
Compiler Design Lexical Analyser
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??
bhattacharya_arka
asked
in
Compiler Design
Apr 18, 2023
by
bhattacharya_arka
286
views
lexical-analysis
1
vote
2
answers
9
Compiler Design | Error in which stage detection
What is the earliest stage compiler error for the following C code snippet: int x = @33; Lexical Error Syntax Error Semantic Error None
Souvik33
asked
in
Compiler Design
Jan 13, 2023
by
Souvik33
536
views
compiler-design
lexical-analysis
error-detection
0
votes
0
answers
10
Best Open Video Playlist for Lexical Analysis Topic | Compiler Design
Please list out the best free available video playlist for Lexical Analysis Topic from Compiler Design as an answer here (only one playlist per answer). We'll then select the best playlist and add to GO classroom video ... standard ones are more likely to be selected as best. For the full list of selected videos please see here
makhdoom ghaya
asked
in
Others
Aug 18, 2022
by
makhdoom ghaya
235
views
go-classroom
missing-videos
free-videos
video-links
lexical-analysis
0
votes
2
answers
11
lexical and syntax error
what is the difference between lexical error and syntax error?
Mohit Aggarwal
asked
in
Compiler Design
Dec 1, 2021
by
Mohit Aggarwal
1.3k
views
compiler-design
lexical-analysis
2
votes
2
answers
12
NIELIT Scientific Assistant A 2020 November: 100
The number of tokens in the following C/C++ statement is : printf("i=%d, &i=%xx", i&i); $9$ $6$ $10$ $12$
gatecse
asked
in
Compiler Design
Dec 9, 2020
by
gatecse
562
views
nielit-sta-2020
compiler-design
lexical-analysis
compiler-tokenization
4
votes
6
answers
13
NIELIT 2016 DEC Scientist B (CS) - Section B: 57
The output of lexical analyzer is: A set of regular expressions Strings of character Syntax tree Set of tokens
Lakshman Bhaiya
asked
in
Compiler Design
Mar 31, 2020
by
Lakshman Bhaiya
1.7k
views
nielit2016dec-scientistb-cs
compiler-design
lexical-analysis
2
votes
5
answers
14
NIELIT 2017 July Scientist B (CS) - Section B: 49
In a compiler, keywords of a language are recognized during parsing of the program the code generation the lexical analysis of the program dataflow analysis
Lakshman Bhaiya
asked
in
Compiler Design
Mar 30, 2020
by
Lakshman Bhaiya
1.9k
views
nielit2017july-scientistb-cs
compiler-design
lexical-analysis
2
votes
8
answers
15
UGC NET CSE | January 2017 | Part 2 | Question: 33
Consider the following statements related to compiler construction: Lexical Analysis is specified by context-free grammars and implemented by pushdown automata. Syntax Analysis is specified by regular expressions and implemented by finite-state machine. Which of the above statement(s) is/are correct? Only I Only II Both I and II Neither I nor II
go_editor
asked
in
Compiler Design
Mar 24, 2020
by
go_editor
3.8k
views
ugcnetjan2017ii
compiler-design
lexical-analysis
0
votes
2
answers
16
TIFR CSE 2020 | Part B | Question: 9
A particular Panini-Backus-Naur Form definition for a $<\textsf{word}>$ is given by the following rules: $<\textsf{word}>:: = \:<\text{letter}> \mid <\text{letter}>\:<\text{pairlet}>\mid <\text{letter}>\:<\text{pairdig}>$ ... $\text{III}$ only $\text{II}$ and $\text{III}$ only $\text{I},\text{II}$ and $\text{III}$
Lakshman Bhaiya
asked
in
Compiler Design
Feb 11, 2020
by
Lakshman Bhaiya
1.2k
views
tifr2020
compiler-design
lexical-analysis
3
votes
0
answers
17
Ullman (Compiler Design) Edition 2 Exercise 3.3 Question 1 (Page No. 125)
Consult the language reference manuals to determine the sets of characters that form the input alphabet (excluding those that may only appear in character strings or comments), the lexical form of numerical constants, and the lexical form of identifiers, for each of the following languages: C C++ C# Fortran Java Lisp SQL
Lakshman Bhaiya
asked
in
Compiler Design
Aug 5, 2019
by
Lakshman Bhaiya
1.1k
views
ullman
compiler-design
lexical-analysis
compiler-tokenization
descriptive
0
votes
1
answer
18
Ullman (Compiler Design) Edition 2 Exercise 3.1 Question 2 (Page No. 114 - 115)
Tagged languages like HTML or XML are different from conventional programming languages in that the punctuation (tags) are either very numerous (as in HTML) or a user-definable set (as in XML). Further ... P> into appropriate lexemes. Which lexemes should get associated lexical values,and what should those values be?
Lakshman Bhaiya
asked
in
Compiler Design
Jul 27, 2019
by
Lakshman Bhaiya
1.0k
views
ullman
compiler-design
lexical-analysis
compiler-tokenization
0
votes
0
answers
19
Ullman (Compiler Design) Edition 2 Exercise 3.1 Question 1 (Page No. 114)
Divide the following C + + program: float limitedSquare(x) float x { /* returns x-squared, but never more than 100 */ return (x<=-10.0 || x>=10.0)?100:x*x; } into appropriate lexemes, using the discussion of Section $3.1.2$ as a guide. Which lexemes should get associated lexical values? What should those values be?
Lakshman Bhaiya
asked
in
Compiler Design
Jul 27, 2019
by
Lakshman Bhaiya
1.3k
views
ullman
compiler-design
lexical-analysis
compiler-tokenization
3
votes
1
answer
20
Lexical Analysis: Self Doubt
The above diagram is Transition Diagrams for identifiers. As we can see that the identifier is said to be accepted if it starts with a letter and ends with a valid delimiter, which includes blank symbol, arithmetic, logical operator, left parenthesis, right ... with a delimiter and + is a valid delimiter and the error in declaration will not be detected at this stage...
Hirak
asked
in
Compiler Design
Jun 9, 2019
by
Hirak
1.8k
views
compiler-design
lexical-analysis
compiler-tokenization
2
votes
2
answers
21
token generation doubt
which one of the following string can definitely said to be a token without looking at the next input: +(++,+=) return(return a) *(*=) =(==) ++ , ( ) ‘ ; option e is: plusplus, comma, bracket open, bracket close, single quote ;
Rhythm
asked
in
Compiler Design
Jun 5, 2019
by
Rhythm
4.0k
views
lexical-analysis
compiler-tokenization
Page:
1
2
3
4
5
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(24)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(682)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent questions tagged lexical-analysis
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation