0% found this document useful (0 votes)
149 views1 page

What Is Translators - Different Type of Translators

Translators are needed to convert programs written in high-level languages to machine code. There are different types of translators that perform this conversion. A translator takes source code as input and converts it to target code as output, while also detecting and reporting errors. The main types of translators are compilers and interpreters.

Uploaded by

nazia khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views1 page

What Is Translators - Different Type of Translators

Translators are needed to convert programs written in high-level languages to machine code. There are different types of translators that perform this conversion. A translator takes source code as input and converts it to target code as output, while also detecting and reporting errors. The main types of translators are compilers and interpreters.

Uploaded by

nazia khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

HOME COMPUTER FUNDAMENTAL NETWORKING C LANGUAGE JAVA TUTORIAL C PROGRAMMING

MANAGEMENT

Home Compiler Design

What is Translators? Different type of translators


Related Articles Basic Courses
BY DINESH THAKUR Category: Compiler Design

A program written in high-level language is called as source code. To convert the What is Translators? Computer Fundamental
source code into machine code, translators are needed.
Different type of Computer Networking
A translator takes a program written in
Ad
We'll try closed
Adnot
by
to show
closed by that ad again translators
Structured Query (SQL)
source language as input and converts it
Stop seeing this ad into a program in target language as output. Phases of Compiler -
Java Script
Compiler Design
Why this ad? It also detects and reports the error during HTML Language
translation. Input Buffering – Compiler
Cascading Style Sheet
Roles of translator are: Design
C Programming (Theory)
• Translating the high-level language Lexical Analysis –
program input into an equivalent machine Compiler Design C Programming (Pratical)
Try 30 days free. SIGN UP language program. Convert Regular Visual Basic
• Providing diagnostic messages wherever Expression to DFA - C++ Programming
the programmer violates specification of
Compiler Design Java Programming
the high-level language program.
LR Parsers - Compiler Java Servlet
Different type of translators Design
Java Server Pages
The different types of translator are as follows: Type of Parsing
Computer Graphics
Compiler Construction
Electronic Commerce
tools - Compiler Design
Management (MIS)
What is LEX? Use of Lex.

What is Parse Tree? -


Data Structures

Compiler Design Software Engineering


Syntax Directed Definition Digital Electronics
(SDD) and Types of Syntax C# Programming
Directed Definitions Database System
Regular Expression -

Compiler Design Advance Courses


What is Context Free
Compiler
Grammars? Compiler
Compiler is a translator which is used to convert programs in high-level language to low-level language. It Website Developement
translates the entire program and also reports the errors in source program encountered during the translation. Design
Struts 2 Tutorial
What is Parser (Syntax
PHP
analysis)? Error Handling
How to
and Recovery in Syntax
python
Analyzer
Grouping of Phases - AngularJS Tutorial

                Compiler Design Compiler Design

Interpreter Compiler Design - Troubleshooting

Interpreter is a translator which is used to convert programs in high-level language to low-level language. Language Processing

Interpreter translates line by line and reports the error once it encountered during the translation process. System

It directly executes the operations specified in the source program when the input is given by the user. What is Derivations? -

It gives better error diagnostics than a compiler. Compiler Design

Error Handling and Error


Recovery In Syntax

Analyzer

               
                                 Differences between compiler and interpreter
 

SI. No Compiler Interpreter

1 Performs the translation of a program Performs statement by statement


as a whole. translation.

2 Execution is faster. Execution is slower.

3 Requires more memory as linking is Memory usage is efficient as no


needed for the generated intermediate object code is
intermediate object code. generated.

4 Debugging is hard as the error It stops translation when the first


messages are generated after error is met. Hence, debugging is
scanning the entire program only. easy.

5 Programming languages like C, C++ Programming languages like Python,


uses compilers. BASIC, and Ruby uses interpreters.

Assembler
Assembler is a translator which is used to translate the assembly language code into machine language code.

             

What is ASCII Code? Type of Parsing What is LEX? Use of What is System
Lex. Software? - Definition

Time Sharing Input Buffering – Type of Computer What is Derivations? -


Operating System Compiler Design System Components Compiler Design

About Dinesh Thakur

Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP
certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to
guides around Computer fundamental , computer software, Computer programming, and web apps.
For any type of query or something that you think is missing, please feel free to Contact us.

Advance Courses Basic Courses Top Category

Website Developement Computer Fundamental Basic Computer


Struts 2 Tutorial Computer Networking Networking
PHP (Hypertext Preprocessor) Structured Query (SQL) C Programming
How to C Programming C++ Programming
Python C++ Programming Java Programming
AngularJS Tutorial Java Programming Management (MIS)
Compiler Design Computer Graphics Computer Graphics

Sitemap | Contact Us | About Us | Privacy Policy


Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Mail Me At (@Computer Notes)

You might also like