Anonymous

What Is Syntax Analysis In Terms Of Compiler?

3 Answers

Anonymous Profile
Anonymous answered
I think reading the code
Florio Potter Profile
Florio Potter answered

When an input string (source code or a program in some language) is given to a compiler, the compiler processes it in several phases, starting from lexical analysis (scans the input and divides it into tokens) to target code generation.

Syntax analysis  is the second phase of a compiler i.e. After lexical analysis.  It checks the syntactical structure of the given input, i.e. Whether the given input is in the correct syntax (of the language in which the input has been written) or not.

If the given input string can be produced with the help of the syntax tree (in the derivation process), the input string is found to be in the correct syntax.

For detailed information get help at CodeAvail-
Online Computer Science Assignment help

Anonymous Profile
Anonymous answered
Syntax Analyzer:  Is a group of taken of the source program into grammatical phrases that are used by the Compiler to synthesize output.

Answer Question

Anonymous