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
syntax analysis
lexical analysis
interpretation analysis
general syntax analysis
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
9 comments Page 1 of 1.

Pooja said:   1 decade ago
It should be syntax analysis.

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.

Amanpreet said:   1 decade ago
It should be syntax analysis because syntax analysis identifies the syntax classes such as noun, verb etc.

Prakash said:   1 decade ago
Lexical analysis is correct. Because it is asking syntax class.

Drashti said:   1 decade ago
Lexical analysis is correct because it is using source program.

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).

Deity said:   9 years ago
Syntax analysis is correct parsing is only done in syntax analysis and not in lexical analysis.

Akhil said:   6 years ago
What is meant by parsing?
(1)

Vaish said:   6 years ago
Parsing is done over the tokens by a parser (syntax analyzer).

Post your comments here:

Your comments will be displayed after verification.