Computer Science - Operating Systems Concepts - Discussion
Discussion Forum : Operating Systems Concepts - Section 2 (Q.No. 8)
8.
The action of parsing the source program into the proper syntactic classes is known as
Discussion:
9 comments Page 1 of 1.
Vaish said:
6 years ago
Parsing is done over the tokens by a parser (syntax analyzer).
Akhil said:
6 years ago
What is meant by parsing?
(1)
Deity said:
9 years ago
Syntax analysis is correct parsing is only done in syntax analysis and not in lexical analysis.
D_geeks said:
1 decade ago
1. Lexical analysis is correct since input is Source program (and not sequence of tokens).
2. Maybe syntactic class refers to type of token (like identifier, keyword etc).
Eg. A = 5;//source program.
(Token category, Token value) -> (identifier, a), (Assignment Op, =), (integer literal, 5).
2. Maybe syntactic class refers to type of token (like identifier, keyword etc).
Eg. A = 5;//source program.
(Token category, Token value) -> (identifier, a), (Assignment Op, =), (integer literal, 5).
Drashti said:
1 decade ago
Lexical analysis is correct because it is using source program.
Prakash said:
1 decade ago
Lexical analysis is correct. Because it is asking syntax class.
Amanpreet said:
1 decade ago
It should be syntax analysis because syntax analysis identifies the syntax classes such as noun, verb etc.
Sundar said:
1 decade ago
Lexical analysis - the process of converting a sequence of characters into a sequence of tokens.
Syntax analysis - transformation of the linear sequence of tokens into a hierarchical syntax tree.
So, I hope given answer is (lexical analysis) correct.
Syntax analysis - transformation of the linear sequence of tokens into a hierarchical syntax tree.
So, I hope given answer is (lexical analysis) correct.
Pooja said:
1 decade ago
It should be syntax analysis.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers