COMPILER DESIGN

SYNTAX ANALYSIS

TOP DOWN AND BOTTOM UP PARSING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compiler is a program
A
Converts high level language program to low level language program
B
Converts high level language to machine level language
C
Both
D
None
Explanation: 

Detailed explanation-1: -A compiler is a special program that translates a programming language’s source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.

Detailed explanation-2: -In computer science, a compiler-compiler or compiler generator is a programming tool that creates a parser, interpreter, or compiler from some form of formal description of a programming language and machine. The most common type of compiler-compiler is more precisely called a parser generator.

Detailed explanation-3: -Answer. A compiler is a program that can read a program in one language-the source language-and translate it into an equivalent program in another language – the target language and report any errors in the source program that it detects during the translation process.

Detailed explanation-4: -A compiler is an executable program that takes program source code (text) as input and translates it into an executable program (binary machine code) that it writes into a file as output. That executable program can then be run to process input data and generate output according to whatever we wrote our program to do.

There is 1 question to complete.