Tutoline offers free online tutorials and interview questions covering a wide range of technologies, including C, C++, HTML, CSS, JavaScript, SQL, Python, PHP,  Engineering courses and more. Whether you're a beginner or a professional, find the tutorials you need to excel in your field."

Compiler Design Assignment Statements

Compiler design: translation of assignment statements.

In the field of computer science, compiler design is a crucial area that deals with the development of software tools known as compilers. These compilers are responsible for translating high-level programming languages into machine-readable code, which can be executed by a computer. One important aspect of compiler design is the translation of assignment statements.

Understanding Assignment Statements

Assignment statements are a fundamental component of programming languages. They allow programmers to assign values to variables, which can then be used in subsequent calculations or operations. For example, consider the following assignment statement in the C programming language:

In this example, the variable “x” is assigned the value of 5. This means that whenever the variable “x” is referenced in the program, its value will be 5.

Translation Process

When it comes to translating assignment statements, compilers follow a specific process to convert the high-level code into machine code. Let’s explore this process in more detail:

Lexical Analysis

The first step in the translation process is lexical analysis. This involves breaking down the source code into a series of tokens, such as keywords, identifiers, operators, and literals. In the case of assignment statements, the compiler identifies the tokens that represent the assignment operator (=), the variable name (x), and the value (5).

Syntax Analysis

Once the tokens have been identified, the compiler moves on to syntax analysis. Here, it checks whether the arrangement of tokens follows the grammar rules of the programming language. In the case of assignment statements, the compiler verifies that the syntax is correct, ensuring that the variable name comes before the assignment operator, followed by the value.

Semantic Analysis

After the syntax has been validated, the compiler performs semantic analysis. This involves checking the meaning and validity of the assignment statement. For example, the compiler checks whether the variable “x” has been declared before it is assigned a value. It also verifies whether the assigned value is compatible with the variable’s data type.

Intermediate Code Generation

Once the assignment statement has been validated, the compiler generates an intermediate representation of the code. This intermediate code is a low-level representation that is closer to the machine code but still human-readable. It serves as a bridge between the high-level code and the final machine code.

Code Optimization

At this stage, the compiler may perform code optimization techniques to improve the efficiency and performance of the generated code. These optimizations can include removing redundant code, simplifying expressions, or rearranging instructions for better execution.

Code Generation

Finally, the compiler generates the actual machine code that can be executed by the computer’s processor. This machine code is a binary representation of the assignment statement, where each instruction is encoded in a specific format that the processor can understand.

Let’s consider a simple example to illustrate the translation of an assignment statement. Suppose we have the following assignment statement in the Python programming language:

Here’s how the translation process would work:

Lexical Analysis:

The compiler identifies the tokens as follows:

  • Variable: x
  • Assignment operator: =
  • Literal: 10
  • Operator: +
  • Variable: y
  • Operator: *

Syntax Analysis:

The compiler verifies that the arrangement of tokens follows the syntax rules of the Python language. In this case, the syntax is correct.

Semantic Analysis:

The compiler checks whether the variable “y” has been declared before it is used in the expression. It also verifies whether the types of the operands are compatible with the operators. Assuming that “y” is declared and has a compatible type, the semantic analysis is successful.

Intermediate Code Generation:

The compiler generates an intermediate representation of the assignment statement, such as:

This intermediate code represents the same computation as the original assignment statement but in a more structured form.

Code Optimization:

If applicable, the compiler may perform code optimization techniques to improve the efficiency of the generated code. For example, it could simplify the expression “10 + temp1” to a constant value if it can determine that “temp1” is always the same.

Code Generation:

Finally, the compiler generates the machine code that corresponds to the intermediate code. This machine code can be executed by the computer’s processor to perform the assignment operation.

In summary, the translation of assignment statements is an essential part of compiler design. It involves breaking down the source code into tokens, validating the syntax and semantics, generating intermediate code, optimizing the code if necessary, and finally generating the machine code. Understanding this process helps programmers and computer scientists appreciate the intricate workings of compilers and their role in converting high-level code into executable instructions.

Javatpoint Logo

  • Data Structure

Cloud Computing

  • Design Pattern
  • Interview Q

Compiler Tutorial

Basic parsing, predictive parsers, symbol tables, administration, error detection, code generation, code optimization, compiler design mcq.

JavaTpoint

In the syntax directed translation, assignment statement is mainly deals with expressions. The expression can be of type real, integer, array and records.

Consider the grammar

The translation scheme of above grammar is given below:

Production rule Semantic actions
S → id :=E {p = look_up(id.name);
 If p ≠ nil then
 Emit (p = E.place)
 Else
 Error;
}
E → E1 + E2 {E.place = newtemp();
 Emit (E.place = E1.place '+' E2.place)
}
E → E1 * E2 {E.place = newtemp();
 Emit (E.place = E1.place '*' E2.place)
}
E → (E1) {E.place = E1.place}
E → id {p = look_up(id.name);
 If p ≠ nil then
 Emit (p = E.place)
 Else
 Error;
}
  • The p returns the entry for id.name in the symbol table.
  • The Emit function is used for appending the three address code to the output file. Otherwise it will report an error.
  • The newtemp() is a function used to generate new temporary variables.
  • E.place holds the value of E.

Youtube

  • Send your Feedback to [email protected]

Help Others, Please Share

facebook

Learn Latest Tutorials

Splunk tutorial

Transact-SQL

Tumblr tutorial

Reinforcement Learning

R Programming tutorial

R Programming

RxJS tutorial

React Native

Python Design Patterns

Python Design Patterns

Python Pillow tutorial

Python Pillow

Python Turtle tutorial

Python Turtle

Keras tutorial

Preparation

Aptitude

Verbal Ability

Interview Questions

Interview Questions

Company Interview Questions

Company Questions

Trending Technologies

Artificial Intelligence

Artificial Intelligence

AWS Tutorial

Data Science

Angular 7 Tutorial

Machine Learning

DevOps Tutorial

B.Tech / MCA

DBMS tutorial

Data Structures

DAA tutorial

Operating System

Computer Network tutorial

Computer Network

Compiler Design tutorial

Compiler Design

Computer Organization and Architecture

Computer Organization

Discrete Mathematics Tutorial

Discrete Mathematics

Ethical Hacking

Ethical Hacking

Computer Graphics Tutorial

Computer Graphics

Software Engineering

Software Engineering

html tutorial

Web Technology

Cyber Security tutorial

Cyber Security

Automata Tutorial

C Programming

C++ tutorial

Control System

Data Mining Tutorial

Data Mining

Data Warehouse Tutorial

Data Warehouse

RSS Feed

  • Assignment Statement

An Assignment statement is a statement that is used to set a value to the variable name in a program .

Assignment statement allows a variable to hold different types of values during its program lifespan. Another way of understanding an assignment statement is, it stores a value in the memory location which is denoted by a variable name.

Assignment Statement Method

The symbol used in an assignment statement is called as an operator . The symbol is ‘=’ .

Note: The Assignment Operator should never be used for Equality purpose which is double equal sign ‘==’.

The Basic Syntax of Assignment Statement in a programming language is :

variable = expression ;

variable = variable name

expression = it could be either a direct value or a math expression/formula or a function call

Few programming languages such as Java, C, C++ require data type to be specified for the variable, so that it is easy to allocate memory space and store those values during program execution.

data_type variable_name = value ;

In the above-given examples, Variable ‘a’ is assigned a value in the same statement as per its defined data type. A data type is only declared for Variable ‘b’. In the 3 rd line of code, Variable ‘a’ is reassigned the value 25. The 4 th line of code assigns the value for Variable ‘b’.

Assignment Statement Forms

This is one of the most common forms of Assignment Statements. Here the Variable name is defined, initialized, and assigned a value in the same statement. This form is generally used when we want to use the Variable quite a few times and we do not want to change its value very frequently.

Tuple Assignment

Generally, we use this form when we want to define and assign values for more than 1 variable at the same time. This saves time and is an easy method. Note that here every individual variable has a different value assigned to it.

(Code In Python)

Sequence Assignment

(Code in Python)

Multiple-target Assignment or Chain Assignment

In this format, a single value is assigned to two or more variables.

Augmented Assignment

In this format, we use the combination of mathematical expressions and values for the Variable. Other augmented Assignment forms are: &=, -=, **=, etc.

Browse more Topics Under Data Types, Variables and Constants

  • Concept of Data types
  • Built-in Data Types
  • Constants in Programing Language 
  • Access Modifier
  • Variables of Built-in-Datatypes
  • Declaration/Initialization of Variables
  • Type Modifier

Few Rules for Assignment Statement

Few Rules to be followed while writing the Assignment Statements are:

  • Variable names must begin with a letter, underscore, non-number character. Each language has its own conventions.
  • The Data type defined and the variable value must match.
  • A variable name once defined can only be used once in the program. You cannot define it again to store other types of value.
  • If you assign a new value to an existing variable, it will overwrite the previous value and assign the new value.

FAQs on Assignment Statement

Q1. Which of the following shows the syntax of an  assignment statement ?

  • variablename = expression ;
  • expression = variable ;
  • datatype = variablename ;
  • expression = datatype variable ;

Answer – Option A.

Q2. What is an expression ?

  • Same as statement
  • List of statements that make up a program
  • Combination of literals, operators, variables, math formulas used to calculate a value
  • Numbers expressed in digits

Answer – Option C.

Q3. What are the two steps that take place when an  assignment statement  is executed?

  • Evaluate the expression, store the value in the variable
  • Reserve memory, fill it with value
  • Evaluate variable, store the result
  • Store the value in the variable, evaluate the expression.

Customize your course in 30 seconds

Which class are you in.

tutor

Data Types, Variables and Constants

  • Variables in Programming Language
  • Concept of Data Types
  • Declaration of Variables
  • Type Modifiers
  • Access Modifiers
  • Constants in Programming Language

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Download the App

Google Play

Translating Statements and Declarations

Cite this chapter.

how assignment statement is translate

  • Richard Bornat 2  

Part of the book series: Macmillan Computer Science Series

61 Accesses

Chapters 5 and 6 show the tree-walking mechanism to its best advantage, working on the translation of source program constructs whose efficient implementation is crucial to the efficiency of the object program. Code fragments for statements are rarely so crucial, particularly when the expressions which they contain are efficiently translated. This chapter therefore shows example procedures which translate statements by linking together the code fragments discussed in chapters 5, 6 and 9 and in section III.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Unable to display preview.  Download preview PDF.

Author information

Authors and affiliations.

Department of Computer Science and Statistics, Queen Mary College, University of London, UK

Richard Bornat

You can also search for this author in PubMed   Google Scholar

Copyright information

© 1979 Richard Bornat

About this chapter

Bornat, R. (1979). Translating Statements and Declarations. In: Understanding and Writing Compilers. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-16178-2_8

Download citation

DOI : https://doi.org/10.1007/978-1-349-16178-2_8

Publisher Name : Palgrave, London

Print ISBN : 978-0-333-21732-0

Online ISBN : 978-1-349-16178-2

eBook Packages : Computer Science Computer Science (R0)

Share this chapter

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

  • Publish with us

Policies and ethics

  • Find a journal
  • Track your research

Translation of an assignment statement 

Translation of an assignment statement 

Figure 1: A compiler 

Similar publications

Figure 1: Transition diagram for DMFA M

  • Recruit researchers
  • Join for free
  • Login Email Tip: Most researchers use their institutional email address as their ResearchGate login Password Forgot password? Keep me logged in Log in or Continue with Google Welcome back! Please log in. Email · Hint Tip: Most researchers use their institutional email address as their ResearchGate login Password Forgot password? Keep me logged in Log in or Continue with Google No account? Sign up

Online Tutorials Library List | Tutoraspire.com

Compiler Translation of Assignment statements

Translation of assignment statements.

In the syntax directed translation, assignment statement is mainly deals with expressions. The expression can be of type real, integer, array and records.

Consider the grammar

The translation scheme of above grammar is given below:

Production rule Semantic actions
S → id :=E {p = look_up(id.name);
 If p ≠ nil then
 Emit (p = E.place)
 Else
 Error;
}
E → E1 + E2 {E.place = newtemp();
 Emit (E.place = E1.place ‘+’ E2.place)
}
E → E1 * E2 {E.place = newtemp();
 Emit (E.place = E1.place ‘*’ E2.place)
}
E → (E1) {E.place = E1.place}
E → id {p = look_up(id.name);
 If p ≠ nil then
 Emit (p = E.place)
 Else
 Error;
}
  • The p returns the entry for id.name in the symbol table.
  • The Emit function is used for appending the three address code to the output file. Otherwise it will report an error.
  • The newtemp() is a function used to generate new temporary variables.
  • E.place holds the value of E.

XML Interview Questions

What is character, you may also like, dbms sql trigger, dbms sql cursors, program to find the quotient and remainder, traditional methods of information gathering, program to insert a new node at the middle of doubly linked list, program to print pattern 15.

Voice speed

Text translation, source text, translation results, document translation, drag and drop.

how assignment statement is translate

Website translation

Enter a URL

Image translation

clear sunny desert yellow sand with celestial snow bridge

1.7 Java | Assignment Statements & Expressions

An assignment statement designates a value for a variable. An assignment statement can be used as an expression in Java.

After a variable is declared, you can assign a value to it by using an assignment statement . In Java, the equal sign = is used as the assignment operator . The syntax for assignment statements is as follows:

An expression represents a computation involving values, variables, and operators that, when taking them together, evaluates to a value. For example, consider the following code:

You can use a variable in an expression. A variable can also be used on both sides of the =  operator. For example:

In the above assignment statement, the result of x + 1  is assigned to the variable x . Let’s say that x is 1 before the statement is executed, and so becomes 2 after the statement execution.

To assign a value to a variable, you must place the variable name to the left of the assignment operator. Thus the following statement is wrong:

Note that the math equation  x = 2 * x + 1  ≠ the Java expression x = 2 * x + 1

Java Assignment Statement vs Assignment Expression

Which is equivalent to:

And this statement

is equivalent to:

Note: The data type of a variable on the left must be compatible with the data type of a value on the right. For example, int x = 1.0 would be illegal, because the data type of x is int (integer) and does not accept the double value 1.0 without Type Casting .

◄◄◄BACK | NEXT►►►

What's Your Opinion? Cancel reply

Enhance your Brain

Subscribe to Receive Free Bio Hacking, Nootropic, and Health Information

HTML for Simple Website Customization My Personal Web Customization Personal Insights

DISCLAIMER | Sitemap | ◘

SponserImageUCD

HTML for Simple Website Customization My Personal Web Customization Personal Insights SEO Checklist Publishing Checklist My Tools

Top Posts & Pages

1. VbScript | Message Box


-->




Assignment 3:  Translation

  • OCaml system documentation —includes the language definition; manuals for the interpreter, compilers, and debugger; standard library references; and other resources. 
  • Tutorials on various aspects of the language. 
  • OCaml for the Skeptical —an alternative, arguably more accessible introduction to the language from the University of Chicago. 

Division of labor and writeup

Be sure to follow all the rules on the Grading page .  As with all assignments, use the turn-in script:  ~cs254/bin/TURN_IN .  Put your write-up in a README.txt , README.md , or README.pdf file in the directory in which you run the script (only one README required per team).  Be sure to describe any features of your code that the TAs might not immediately notice. 

Extra Credit Suggestions

Trivia assignment, main due date: .

Trending Articles on Technical and Non Technical topics

  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • HR Interview Questions
  • Computer Glossary

What is assignment statements with Integer types in compiler design?

Assignment statements consist of an expression. It involves only integer variables.

Abstract Translation Scheme

Consider the grammar, which consists of an assignment statement.

S → id = E

E → E + E

E → E ∗ E

E → −E

E → (E)

E → id

Here Translation of E can have two attributes −

  • 𝐄. 𝐏𝐋𝐀𝐂𝐄− It tells about the name that will hold the value of the expression.
  • 𝐄. 𝐂𝐎𝐃𝐄− It represents a sequence of three address statements evaluating the expression E in grammar represents an Assignment statement. E. CODE represents the three address codes of the statement. CODE for non-terminals on the left is the concatenation of CODE for each non-terminal on the right of Production.

                                                    Abstract Translation Scheme

S → id = E{S. CODE = E. CODE| |id. PLACE| | '=. '||E. PLACE}
E → E + E {T = newtemp( );
E. PLACE = T;
E. CODE = E . CODE | |E . CODE| |
E. PLACE
| | '=' | |E . PLACE | | '+' | |E . PLACE }
E → E ∗ E {T = newtemp( );
 E. PLACE = T;
E. CODE = E . CODE | |E . CODE | |
E. PLACE | | '=' | |E . PLACE
| | '*' | |E . PLACE }
E → −E {T = newtemp( );
E. PLACE = T;
E. CODE = E . CODE
| |E. PLACE | | '=−' | |E . PLACE
 }
E → (E ){E. PLACE = E . PLACE;
E. CODE = E . CODE }
E → id{E. PLACE = id. PLACE;
 E. CODE = null; }

In the first production S → id = E,

id. PLACE| | '=' | | E. PLACE is a string which follows S. CODE = E. CODE.

In the second production E → E (1) + E (2) ,

E. PLACE| | '=' | | E (1) . PLACE | | '+' | | E (2) . PLACE is a string which is appended with E. CODE = E (1) . CODE ||E (2) . CODE.

In the fifth production , i.e., E → (E (1) ) does not have any string which follows E. CODE = E (1) . CODE. This is because it does not have any operator on its R.H.S of the production.

Similarly, the sixth production also does not have any string appended after E. CODE = null. The sixth production contains null because there is no expression appears on R.H.S of production. So, no CODE attribute will exist as no expression exists, because CODE represents a sequence of Three Address Statements evaluating the expression.

It consists of id in its R.H.S, which is the terminal symbol but not an expression. We can also use a procedure GEN (Statement) in place of S. CODE & E. CODE, As the GEN procedure will automatically generate three address statements.

So, the GEN statement will replace the CODE Statements.

GEN Statements replacing CODE definitions

S → id = EGEN(id. PLACE = E. PLACE)
E → E + E GEN(E. PLACE = E . PLACE + E . PLACE
E → E ∗ E GEN(E. PLACE = E . PLACE ∗ E . PLACE
E → −E GEN(E. PLACE = −E . PLACE)
E → (E )None
E → idNone

Ginni

Related Articles

  • What is translation of control statements in compiler design?
  • What is types of LR Parser in compiler design?
  • What is Backpatching of Boolean Expressions and Control Statements in compiler design?
  • What are the types of the translator in compiler design?
  • What is Design of Lexical Analysis in Compiler Design?
  • What is Top-Down Parsing with Backtracking in compiler design?
  • What is Chomsky Hierarchy in compiler design?
  • What is error handling in compiler design?
  • What is Input Buffering in Compiler Design?
  • What is Finite Automata in Compiler Design?
  • What is Language Processing Systems in Compiler Design?
  • What is minimizing of DFA in compiler design?
  • What is the Representation of DFA in compiler design?
  • What is Operator Precedence Parsing Algorithm in compiler design?

Kickstart Your Career

Get certified by completing the course

  • Python Basics
  • Interview Questions
  • Python Quiz
  • Popular Packages
  • Python Projects
  • Practice Python
  • AI With Python
  • Learn Python3
  • Python Automation
  • Python Web Dev
  • DSA with Python
  • Python OOPs
  • Dictionaries

Different Forms of Assignment Statements in Python

  • Statement, Indentation and Comment in Python
  • Conditional Statements in Python
  • Assignment Operators in Python
  • Loops and Control Statements (continue, break and pass) in Python
  • Different Ways of Using Inline if in Python
  • Provide Multiple Statements on a Single Line in Python
  • Difference between "__eq__" VS "is" VS "==" in Python
  • Augmented Assignment Operators in Python
  • Increment += and Decrement -= Assignment Operators in Python
  • Nested-if statement in Python
  • How to write memory efficient classes in Python?
  • A += B Assignment Riddle in Python
  • Assign Function to a Variable in Python
  • Python pass Statement
  • Python If Else Statements - Conditional Statements
  • Data Classes in Python | Set 5 (post-init)
  • Assigning multiple variables in one line in Python
  • Assignment Operators in Programming
  • What is the difference between = (Assignment) and == (Equal to) operators

We use Python assignment statements to assign objects to names. The target of an assignment statement is written on the left side of the equal sign (=), and the object on the right can be an arbitrary expression that computes an object.

There are some important properties of assignment in Python :-

  • Assignment creates object references instead of copying the objects.
  • Python creates a variable name the first time when they are assigned a value.
  • Names must be assigned before being referenced.
  • There are some operations that perform assignments implicitly.

Assignment statement forms :-

1. Basic form:

This form is the most common form.

2. Tuple assignment:

    

When we code a tuple on the left side of the =, Python pairs objects on the right side with targets on the left by position and assigns them from left to right. Therefore, the values of x and y are 50 and 100 respectively.

3. List assignment:

This works in the same way as the tuple assignment.

 

4. Sequence assignment:

In recent version of Python, tuple and list assignment have been generalized into instances of what we now call sequence assignment – any sequence of names can be assigned to any sequence of values, and Python assigns the items one at a time by position.

 

5. Extended Sequence unpacking:

It allows us to be more flexible in how we select portions of a sequence to assign.

Here, p is matched with the first character in the string on the right and q with the rest. The starred name (*q) is assigned a list, which collects all items in the sequence not assigned to other names.

This is especially handy for a common coding pattern such as splitting a sequence and accessing its front and rest part.

 

6. Multiple- target assignment:

 

In this form, Python assigns a reference to the same object (the object which is rightmost) to all the target on the left.

7. Augmented assignment :

The augmented assignment is a shorthand assignment that combines an expression and an assignment.

      

There are several other augmented assignment forms:

Please Login to comment...

Similar reads.

  • python-basics
  • Python Programs

Improve your Coding Skills with Practice

 alt=

What kind of Experience do you want to share?

  • Digital Offerings
  • Biochemistry
  • College Success
  • Communication
  • Electrical Engineering
  • Environmental Science
  • Mathematics
  • Nutrition and Health
  • Philosophy and Religion
  • Our Mission
  • Our Leadership
  • Accessibility
  • Diversity, Equity, Inclusion
  • Learning Science
  • Sustainability
  • Affordable Solutions
  • Curriculum Solutions
  • Inclusive Access
  • Lab Solutions
  • LMS Integration
  • Instructor Resources
  • iClicker and Your Content
  • Badging and Credidation
  • Press Release
  • Learning Stories Blog
  • Discussions
  • The Discussion Board
  • Webinars on Demand
  • Digital Community
  • Macmillan Learning Peer Consultants
  • Macmillan Learning Digital Blog
  • Learning Science Research
  • Macmillan Learning Peer Consultant Forum
  • The Institute at Macmillan Learning
  • Professional Development Blog
  • Teaching With Generative AI: A Course for Educators (Start date May 13th, 2024)
  • Teaching With Generative AI: A Course for Educators (Start date July 8, 2024)
  • English Community
  • Achieve Adopters Forum
  • Hub Adopters Group
  • Psychology Community
  • Psychology Blog
  • Talk Psych Blog
  • History Community
  • History Blog
  • Communication Community
  • Communication Blog
  • College Success Community
  • College Success Blog
  • Economics Community
  • Economics Blog
  • Institutional Solutions Community
  • Institutional Solutions Blog
  • Handbook for iClicker Administrators
  • Nutrition Community
  • Nutrition Blog
  • Lab Solutions Community
  • Lab Solutions Blog
  • STEM Community
  • STEM Achieve Adopters Forum
  • Contact Us & FAQs
  • Find Your Rep
  • Training & Demos
  • First Day of Class
  • For Booksellers
  • International Translation Rights
  • Permissions
  • Report Piracy

Digital Products

Instructor catalog, our solutions.

  • Macmillan Community

Exploring the Translation Assignment

roy_stamper

  • Subscribe to RSS Feed
  • Mark as New
  • Mark as Read
  • Printer Friendly Page
  • Report Inappropriate Content

Stamper_01_29_16_LR.PNG

  • an insider's guide to academic writing
  • rhetorical knowledge
  • writing conventions
  • writing in the disciplines

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Bedford New Scholars 50
  • Composition 565
  • Corequisite Composition 58
  • Developmental English 38
  • Events and Conferences 6
  • Instructor Resources 9
  • Literature 55
  • Professional Resources 4
  • Virtual Learning Resources 48
  • Français
  • Español

Translation Expert (English-Arabic) - National Consultant - Retainer

Advertised on behalf of, type of contract :.

Individual Contract

Starting Date :

Application deadline :.

25-Jun-24 (Midnight New York, USA)

Post Level :

National Consultant

Duration of Initial Contract :

Time left :, languages required :.

Arabic   English  

Expected Duration of Assignment :

Up to 12 days per month for 12 months

UNDP is committed to achieving workforce diversity in terms of gender, nationality and culture. Individuals from minority groups, indigenous groups and persons with disabilities are equally encouraged to apply. All applications will be treated with the strictest confidence. UNDP does not tolerate sexual exploitation and abuse, any kind of harassment, including sexual harassment, and discrimination. All selected candidates will, therefore, undergo rigorous reference and background checks.

UN Women, grounded in the vision of equality enshrined in the Charter of the United Nations, works for the elimination of discrimination against women and girls; the empowerment of women; and the achievement of equality between women and men as partners and beneficiaries of development, human rights, humanitarian action and peace and security.

The Regional Office for the Arab States (ROAS) covers 17 countries in the Arab States region. ROAS supports Country Offices to assist national governments to fulfill their gender equality commitments under the applicable national and international laws, and in furtherance of national and regional implementation of Agenda 2030 and the Sustainable Development Goals. In 2023, UN Women has opened its first physical presence in Bahrain, where, as a signatory to the United Nations Sustainable Development Cooperation Framework, it will contribute to UN joint efforts in support of the national development plan Bahrain Economic Vision 2030, in close consultation with its national partner the Supreme Council for Women. 

The translator will be engaged under a retainer contract for twelve months in length (with the possibility of extension) and is expected to provide high-quality Arabic-to-English and English-to-Arabic written translation services for UN Women on a per-assignment basis. Individual assignments will vary in length, content, and form. UN Women Bahrain will identify in advance translation assignments, ascertain whether the hired consultant is available during the time period of the assignment, and clearly inform the hired consultant of the nature, timeframe, and expected outputs for each assignment. Flexibility is expected as the nature of the communications work often evolves to respond to contextual needs and demands, including deadlines set at short notice. After completion of the assignment, the consultant will be required to submit an invoice detailing the number of words translated (one page of text being equivalent to 250 words).

Under the direct supervision of the Coordination Specialist and the overall guidance and supervision of the Regional Director for the Arab States, the consultant will be responsible for providing written translation (Arabic-English, English-Arabic) for a range of documents, including briefs, reports, speeches, presentations, meeting notes, etc., compliant with UN Women’s inclusive language guidelines.

Duties and Responsibilities

  • Translate UN Women Bahrain knowledge products and communication materials from English to Arabic and vice versa, ensuring accuracy, appropriateness, and adherence to UN Women's gender-sensitive translation guidelines;
  • Conduct thorough terminological research using UN/UN Women/UN Term websites and other resources to ensure the accuracy and consistency of translations;
  • Take full responsibility for the quality and accuracy of the entire translated document before submission.

Consultant’s Workplace and Official Travel

  • This is a home-based consultancy.

Competencies

Core Values: 

  • Respect for Diversity;
  • Professionalism. 

Core Competencies: 

  • Awareness and Sensitivity Regarding Gender Issues; 
  • Accountability;
  • Creative Problem Solving
  • Effective Communication;
  • Inclusive Collaboration;
  • Stakeholder Engagement; 
  • Leading by Example.

Please visit this link for more information on UN Women’s Core Values and Competencies: https://www.unwomen.org/en/about-us/employment/application-process#_Values

FUNCTIONAL COMPETENCIES: 

  • Excellent translation expertise on gender-sensitive, inclusive, and neutral languages;
  • Demonstrable experience in communicating on gender equality and women’s empowerment;
  • Excellent writing skills;
  • Ability and willingness to work as part of a team to meet tight deadlines and produce high quality work.

Required Skills and Experience

Education and Certification:

  • Master’s degree in translation or languages, or a related field;
  • A first-level university degree in combination with two additional years of qualifying experience may be accepted in lieu of the advanced university degree.

Experience:

  • At least 2 years of progressively responsible work experience in Arabic-English translation;
  • Familiarity with gender-sensitive language in Arabic and English;
  • Work experience with UN Women or the UN system would be an asset.
  • Fluency in written and oral English and Arabic is a must.

Application:

Interested individuals must submit the following document to demonstrate their qualifications. Kindly note that the system will only allow one attachment.

  • UN Women Personal History form (P-11) which can be downloaded from   https://www.unwomen.org/sites/default/files/Headquarters/Attachments/Sections/About%20Us/Employment/UN-Women-P11-Personal-History-Form.doc ;
  • Any application without submitting the above-mentioned document will be a ground for disqualification.

At UN Women, we are committed to creating a diverse and inclusive environment of mutual respect. UN Women recruits, employs, trains, compensates, and promotes regardless of race, religion, color, sex, gender identity, sexual orientation, age, ability, national origin, or any other basis covered by appropriate law. All employment is decided on the basis of qualifications, competence, integrity, and organizational need.

If you need any reasonable accommodation to support your participation in the recruitment and selection process, please include this information in your application.

UN Women has a zero-tolerance policy on conduct that is incompatible with the aims and objectives of the United Nations and UN Women, including sexual exploitation and abuse, sexual harassment, abuse of authority, and discrimination. All selected candidates will be expected to adhere to UN Women’s policies and procedures and the standards of conduct expected of UN Women personnel and will therefore undergo rigorous reference and background checks. (Background checks will include the verification of academic credential(s) and employment history. Selected candidates may be required to provide additional information to conduct a background check.)

U.S. flag

An official website of the United States government

Here’s how you know

The .gov means it’s official. Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

The site is secure. The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Take action

  • Report an antitrust violation
  • File adjudicative documents
  • Find banned debt collectors
  • View competition guidance
  • Competition Matters Blog

Slow the Roll-up: Help Shine a Light on Serial Acquisitions

View all Competition Matters Blog posts

We work to advance government policies that protect consumers and promote competition.

View Policy

Search or browse the Legal Library

Find legal resources and guidance to understand your business responsibilities and comply with the law.

Browse legal resources

  • Find policy statements
  • Submit a public comment

how assignment statement is translate

Vision and Priorities

Memo from Chair Lina M. Khan to commission staff and commissioners regarding the vision and priorities for the FTC.

Technology Blog

Global perspectives from the international competition network tech forum.

View all Technology Blog posts

Advice and Guidance

Learn more about your rights as a consumer and how to spot and avoid scams. Find the resources you need to understand how consumer protection law impacts your business.

  • Report fraud
  • Report identity theft
  • Register for Do Not Call
  • Sign up for consumer alerts
  • Get Business Blog updates
  • Get your free credit report
  • Find refund cases
  • Order bulk publications
  • Consumer Advice
  • Shopping and Donating
  • Credit, Loans, and Debt
  • Jobs and Making Money
  • Unwanted Calls, Emails, and Texts
  • Identity Theft and Online Security
  • Business Guidance
  • Advertising and Marketing
  • Credit and Finance
  • Privacy and Security
  • By Industry
  • For Small Businesses
  • Browse Business Guidance Resources
  • Business Blog

Servicemembers: Your tool for financial readiness

Visit militaryconsumer.gov

Get consumer protection basics, plain and simple

Visit consumer.gov

Learn how the FTC protects free enterprise and consumers

Visit Competition Counts

Looking for competition guidance?

  • Competition Guidance

News and Events

Latest news, ftc issues annual report on refunds to consumers; agency returned $324m in 2023.

View News and Events

Upcoming Event

Seventeenth annual microeconomics conference.

View more Events

Sign up for the latest news

Follow us on social media

-->   -->   -->   -->   -->  

gaming controller illustration

Playing it Safe: Explore the FTC's Top Video Game Cases

Learn about the FTC's notable video game cases and what our agency is doing to keep the public safe.

Latest Data Visualization

Visualization of FTC Refunds to Consumers

FTC Refunds to Consumers

Explore refund statistics including where refunds were sent and the dollar amounts refunded with this visualization.

About the FTC

Our mission is protecting the public from deceptive or unfair business practices and from unfair methods of competition through law enforcement, advocacy, research, and education.

Learn more about the FTC

Lina M. Khan

Meet the Chair

Lina M. Khan was sworn in as Chair of the Federal Trade Commission on June 15, 2021.

Chair Lina M. Khan

Looking for legal documents or records? Search the Legal Library instead.

  • Cases and Proceedings
  • Premerger Notification Program
  • Merger Review
  • Anticompetitive Practices
  • Competition and Consumer Protection Guidance Documents
  • Warning Letters
  • Consumer Sentinel Network
  • Criminal Liaison Unit
  • FTC Refund Programs
  • Notices of Penalty Offenses
  • Advocacy and Research
  • Advisory Opinions
  • Cooperation Agreements
  • Federal Register Notices
  • Public Comments
  • Policy Statements
  • International
  • Office of Technology Blog
  • Military Consumer
  • Consumer.gov
  • Bulk Publications
  • Data and Visualizations
  • Stay Connected
  • Commissioners and Staff
  • Bureaus and Offices
  • Budget and Strategy
  • Office of Inspector General
  • Careers at the FTC

FTC Takes Action Against Adobe and Executives for Hiding Fees, Preventing Consumers from Easily Cancelling Software Subscriptions

Facebook

  • Consumer Protection
  • Bureau of Consumer Protection
  • deceptive/misleading conduct
  • Software and Databases
  • Online Advertising and Marketing
  • Advertising and Marketing Basics

The Federal Trade Commission is taking action against software maker Adobe and two of its executives, Maninder Sawhney and David Wadhwani, for deceiving consumers by hiding the early termination fee for its most popular subscription plan and making it difficult for consumers to cancel their subscriptions.

A federal court complaint filed by the Department of Justice upon notification and referral from the FTC charges that Adobe pushed consumers toward the “annual paid monthly” subscription without adequately disclosing that cancelling the plan in the first year could cost hundreds of dollars. Wadhwani is the president of Adobe’s digital media business, and Sawhney is an Adobe vice president.

“Adobe trapped customers into year-long subscriptions through hidden early termination fees and numerous cancellation hurdles,” said Samuel Levine, Director of the FTC’s Bureau of Consumer Protection. “Americans are tired of companies hiding the ball during subscription signup and then putting up roadblocks when they try to cancel. The FTC will continue working to protect Americans from these illegal business practices.”

After 2012, Adobe shifted principally to a subscription model, requiring consumers to pay for access to the company’s popular software on a recurring basis. Subscriptions account for most of the company’s revenue.

According to the complaint, when consumers purchase a subscription through the company’s website, Adobe pushes consumers to its “annual paid monthly” subscription plan, pre-selecting it as a default. Adobe prominently shows the plan’s “monthly” cost during enrollment, but it buries the early termination fee (ETF) and its amount, which is 50 percent of the remaining monthly payments when a consumer cancels in their first year. Adobe’s ETF disclosures are buried on the company’s website in small print or require consumers to hover over small icons to find the disclosures.

Consumers complain to the FTC and the Better Business Bureau about the ETF, according to the complaint. These consumers report they were not aware of the existence of the ETF or that the “annual paid monthly” plan required their subscription to continue for a year. The complaint notes that Adobe has been aware of consumers’ confusion about the ETF.

Despite being aware of consumers’ problems with the ETF, the company continues its practice of steering consumers to the annual paid monthly plan while obscuring the ETF, according to the complaint.

In addition to failing to disclose the ETF to consumers when they subscribe, the complaint also alleges that Adobe uses the ETF to ambush consumers to deter them from cancelling their subscriptions. The complaint also alleges that Adobe’s cancellation processes are designed to make cancellation difficult for consumers. When consumers have attempted to cancel their subscription on the company’s website, they have been forced to navigate numerous pages in order to cancel.

When consumers reach out to Adobe’s customer service to cancel, they encounter resistance and delay from Adobe representatives. Consumers also experience other obstacles, such as dropped calls and chats, and multiple transfers. Some consumers who thought they had successfully cancelled their subscription reported that the company continued to charge them until discovering the charges on their credit card statements.

The complaint charges that Adobe’s practices violate the Restore Online Shoppers’ Confidence Act.

The Commission vote to refer the civil penalty complaint to the DOJ for filing was 3-0. The Department of Justice filed the complaint in the U.S. District Court   for the Northern District of California.

NOTE: The Commission refers a complaint for civil penalties to the DOJ for filing when it has “reason to believe” that the named defendants are violating or are about to violate the law and that a proceeding is in the public interest. The case will be decided by the court.

The staff attorneys on this matter are Sana Chaudhry and Daniel Wilkes of the FTC’s Bureau of Consumer Protection.

The Federal Trade Commission works to promote competition and protect and educate consumers .  The FTC will never demand money, make threats, tell you to transfer money, or promise you a prize. Learn more about consumer topics at consumer.ftc.gov , or report fraud, scams, and bad business practices at  ReportFraud.ftc.gov . Follow the FTC on social media , read consumer alerts and the business blog , and sign up to get the latest FTC news and alerts .

Contact Information

Contact for consumers, media contact.

Jay Mayfield Office of Public Affairs 202-326-2656

  • SI SWIMSUIT
  • SI SPORTSBOOK

Dodgers Release Statement Honoring Willie Mays: 'No Finer Rival'

Maren angus-coombs | 7 hours ago.

how assignment statement is translate

  • Los Angeles Dodgers

Willie Mays, one of the most legendary baseball players to ever wear a San Francisco Giants jersey, passed away Tuesday at the age of 93.

Mays’ family and the San Francisco Giants jointly announced Tuesday night he had died earlier in the afternoon in the Bay Area.

“My father has passed away peacefully and among loved ones,” son Michael Mays said in a statement released by the club. “I want to thank you all from the bottom of my broken heart for the unwavering love you have shown him over the years. You have been his life’s blood.”

pic.twitter.com/MMNQcFOz5P — Los Angeles Dodgers (@Dodgers) June 19, 2024

The Los Angeles Dodgers released a statement about their Hall of Fame rival.

"The Dodgers pay tribute to the incomparable Willie Mays. From the East Coast to the West Coast, he dazzled baseball fans, leaving behind cherished memories for generations. For the Dodgers, there was no finer rival. We mourn his loss and extend our deepest sympathies to his loved ones."

Mays died two days before a special game between the Giants and St. Louis Cardinals in Birmingham, Alabama, where Mays grew up and debuted professionally with the Black Barons of the Negro Leagues in 1948.

“All of Major League Baseball is in mourning today as we are gathered at the very ballpark where a career and a legacy like no other began,” Commissioner Rob Manfred said. “Willie Mays took his all-around brilliance from the Birmingham Black Barons of the Negro American League to the historic Giants franchise. From coast to coast ... Willie inspired generations of players and fans as the game grew and truly earned its place as our National Pastime.”

Maren Angus-Coombs

MAREN ANGUS-COOMBS

Maren Angus-Coombs was born in Los Angeles and raised in Nashville, Tenn. She is a graduate of Middle Tennessee State and has been a sports writer since 2008. Despite growing up in the South, her sports obsession has always been in Los Angeles. She is currently a staff writer at the LA Sports Report Network.

COMMENTS

  1. Compiler Design: Translation of Assignment Statements

    Conclusion. In summary, the translation of assignment statements is an essential part of compiler design. It involves breaking down the source code into tokens, validating the syntax and semantics, generating intermediate code, optimizing the code if necessary, and finally generating the machine code.

  2. Compiler Translation of Assignment statements

    Translation of Assignment Statements. In the syntax directed translation, assignment statement is mainly deals with expressions. The expression can be of type real, integer, array and records. The p returns the entry for id.name in the symbol table. The Emit function is used for appending the three address code to the output file.

  3. Translation of Assignment Statements

    compiler designtranslation of assignment statements with example

  4. Translating Assignment Statements

    Our action would be shown in the grammar as. <statement> <ident> := <expression> #gen_assign(ident_rec, expression_rec) ; we use the # to show that the new information inserted into the grammar is not a non terminal or terminal, but rather an action symbol that will translate into an action call to the semantic analyzer in our parser.

  5. Syntax Directed Translation in Compiler Design

    Definition. Syntax Directed Translation has augmented rules to the grammar that facilitate semantic analysis. SDT involves passing information bottom-up and/or top-down to the parse tree in form of attributes attached to the nodes. Syntax-directed translation rules use 1) lexical values of nodes, 2) constants & 3) attributes associated with the ...

  6. What are Assignment Statement: Definition, Assignment Statement ...

    Assignment Statement. An Assignment statement is a statement that is used to set a value to the variable name in a program. Assignment statement allows a variable to hold different types of values during its program lifespan. Another way of understanding an assignment statement is, it stores a value in the memory location which is denoted.

  7. PDF Chapter 5 Syntax-Directed Translation

    Translation This chapter develops the theme of Section 2.3: the translation of languages guided by context-free grammars. The translation techniques in this chapter will be applied in Chapter 6 to type checking and intermediate-code generation. The techniques are also useful for implementing little languages for specialized

  8. COMPILER DESIGN LECTURE

    Syntax Directed Definitions and Translations helpful in converting assignment statements to three address code is explained with examples

  9. PDF 7 Translating Statements and Declarations

    Assignment Statement Chapter 5 shows how to translate an arithmetic expression and chapter 9 shows how to generate code which calculates the address of an element of an array. Figure 7.1 shows 'TranAssignStat' and 'TranAddress' procedures which use these techniques in translating an assignment statement.

  10. PDF Translating Statements and Declarations

    7.1 Assignment Statement Chapter 5 shows how to translate an arithmetic expression and chapter 9 shows how to generate code which calculates the address of an element of an array. Fig-ure 7.1 shows 'TranAssignStat' and 'TranAddress' procedures which use these techniques in translating an assignment statement. I assume (see chapter 9) that

  11. Translation of an assignment statement

    Download scientific diagram | Translation of an assignment statement from publication: Compiler Techniques: Lexical analyzer | It include introduction to compilers, lexical analyzer phase. Note ...

  12. PDF UNIT-III Compiler Design SCS1303

    statement in the array holding intermediate code. Here are the common three address statements used : 1. Assignment statements of the form x=y op z ,where op is a binary arithmetic or logical operation. 2. Assignment instructions of the form x = op y. where op is a unary operation. Essential unary operations include unary minus.

  13. Translation of an assignment statement

    Download scientific diagram | Translation of an assignment statement from publication: 1 Compiler technique (Part 1) | It includes a discussion about: Compiler definition, differences between ...

  14. Translation of an assignment statement

    Translation of an assignment statement Compiler-Construction Tools Some commonly used compiler-construction tools include 1. Parser generators that automatically produce syntax analyzers from a grammatical description of a programming language. 2. Scanner generators that produce lexical analyzers from a regular-expression description of the ...

  15. Syntax Directed Translation for assignment statements

    Syntax Directed Translation for assignment statements

  16. Compiler Translation of Assignment statements

    Translation of Assignment Statements. In the syntax directed translation, assignment statement is mainly deals with expressions. The expression can be of type real, integer, array and records. Consider the grammar. S → id := E E → E1 + E2 E → E1 * E2 E → (E1) E → id. The translation scheme of above grammar is given below:

  17. Google Translate

    Google's service, offered free of charge, instantly translates words, phrases, and web pages between English and over 100 other languages.

  18. 1.7 Java

    An assignment statement designates a value for a variable. An assignment statement can be used as an expression in Java. After a variable is declared, you can assign a value to it by using an assignment statement. In Java, the equal sign = is used as the assignment operator. The syntax for assignment statements is as follows: variable ...

  19. Assignment 3: Translation

    Assignment 3: Translation. Your task in this assignment is to implement a complete (if simplistic) compiler for our extended calculator language (call it ECL), again with if statements, while statements, and both int and real types. Your compiler (hereinafter referred to as the "translator") will be written in OCaml and will generate a low-level subset of C.

  20. What is assignment statements with Integer types in compiler design?

    It consists of id in its R.H.S, which is the terminal symbol but not an expression. We can also use a procedure GEN (Statement) in place of S. CODE & E. CODE, As the GEN procedure will automatically generate three address statements. So, the GEN statement will replace the CODE Statements. GEN Statements replacing CODE definitions

  21. Different Forms of Assignment Statements in Python

    Multiple- target assignment: x = y = 75. print(x, y) In this form, Python assigns a reference to the same object (the object which is rightmost) to all the target on the left. OUTPUT. 75 75. 7. Augmented assignment : The augmented assignment is a shorthand assignment that combines an expression and an assignment.

  22. Exploring the Translation Assignment

    The Assignment. The assignment I'm using in my current first-year writing course asks students to translate an academic text, a peer-reviewed journal article (of their own choosing) from a natural science journal, into a more popular genre, a press release. I strategically place this assignment near the beginning of my course because it ...

  23. UN WOMEN Jobs

    Individual assignments will vary in length, content, and form. UN Women Bahrain will identify in advance translation assignments, ascertain whether the hired consultant is available during the time period of the assignment, and clearly inform the hired consultant of the nature, timeframe, and expected outputs for each assignment.

  24. Statement From Governor Kathy Hochul

    Statement From Governor Kathy Hochul "Today's Supreme Court decision reinforces a simple point: common-sense gun safety laws save lives. "In New York, we have some of the nation's strongest laws to keep people safe from gun violence and protect survivors. Our nation-leading efforts to expand Red Flag Laws and restrict access to deadly ...

  25. Statement From Governor Kathy Hochul

    The State of New York does not imply approval of the listed destinations, warrant the accuracy of any information set out in those destinations, or endorse any opinions expressed therein.

  26. Statement of the Commission Regarding TikTok Complaint Referral to DOJ

    Today, the Commission issued a statement regarding its referral to the Department of Justice a complaint against TikTok, the successor to Musical.ly, and its parent company ByteDance Ltd. The Commission vote authorizing the issuance of the statement was 3-0-2, with Commissioners Ferguson and Holyoak recused.

  27. FTC Takes Action Against Adobe and Executives for Hiding Fees

    The Federal Trade Commission is taking action against software maker Adobe and two of its executives, Maninder Sawhney and David Wadhwani, for deceiving consumers by hiding the early termination fee for its most popular subscription plan and making it difficult for consumers to cancel their subscriptions.

  28. NEWS HOUR

    news hour | june 21, 2024 | ait live

  29. Governor Glenn Youngkin

    Governor Glenn Youngkin Releases Statement After Senate Democrats Fail to Consider Changes to VMSDEP. RICHMOND, VA - Governor Glenn Youngkin today released the following statement after Senate Democrats failed to consider a simple bill with bipartisan support that would repeal and reverse the VMSDEP waiver changes: "I stand with our military heroes, first responders, and their families today ...

  30. Dodgers Release Statement Honoring Willie Mays: 'No Finer Rival'

    Willie Mays, one of the most legendary baseball players to ever wear a San Francisco Giants jersey, passed away Tuesday at the age of 93. Mays' family and the