Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Language Processing

Rating
-
Sold
-
Pages
11
Uploaded on
01-08-2024
Written in
2024/2025

It provides basic concepts on how programming languages do language processing

Institution
Course

Content preview

1. DATA TYPES AND TYPE CHECKING
A data type is defined by the set of primary values allowed and the
operations defined on these values. A data type is used to declare
variables (e.g., integer, real, array of integer, string, etc.).
Type checking is the activity of ensuring that the data types of
operands of an operator are legal or equivalent to the legal type.
TWO MAJOR TYPE EQUIVALENCE POLICIES:
1. structural equivalence
2. name equivalence
structural equivalence policy is used, the two types are equivalent if they
have the same set of values (data range) and the same operations.
This policy follows the stored program concept and gives programmers the
maximum flexibility to manipulate data. The stored program concept
suggests that instruction and data are stored in computer memory as binary bit
patterns and it is the programmer’s responsibility to interpret the meanings
of the bit patterns.
name equivalence policy is used, two types are equivalent only if they
have the same name. Since no programming language will normally
allow two different data types to have the same name, this policy does
not allow any variable of one type to be used in the place where a variable
of another type is expected without explicit type conversion. If name
equivalence policy is used, the statement “i = s + a;” is then illegal.




BSCS 311 PRINCIPLES OF PROGRAMMING LANGUAGES. 1

, INTRODUCTION TO LANGUAGE TRANSLATION:




BSCS 311 PRINCIPLES OF PROGRAMMING LANGUAGES. 2

Written for

Institution
Course

Document information

Uploaded on
August 1, 2024
Number of pages
11
Written in
2024/2025
Type
Class notes
Professor(s)
Mr vincent
Contains
All classes

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
onlinebussiness

Get to know the seller

Seller avatar
onlinebussiness Victor Publishers
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions