Bird's Eye View of Programming Language Concepts - Syntax - Semantics - Pragmatics
Bird's Eye View of Programming Language Concepts - Syntax - Semantics - Pragmatics
Bird's Eye View of Programming Language Concepts - Syntax - Semantics - Pragmatics
Environment (Defining
and Declaring Variables)
Computation(Algorithms
or functions)
Simple Program Structure
consists of the following..example
Syntax
Syntax is the required grammar and punctuation of the language
semantics
Semantics can affect things at a
very high level:
• C is a procedural language; you describe a set
of procedures to follow
• Java is an object-oriented language; you
describe objects and their behaviors
• Prolog is a logic language; you describe facts and the
logical relationships among them
Syntax supports
semantics
• A language cannot have semantics without
syntax to support those semantics
• C couldn’t have a for loop without syntax
• Java couldn’t have objects without syntax
for creating and using them
Semantic Elements
Values
and
Reference
s
E
VARIABLE
In Computer programming a variable is a storage
location and associated symbolic name which contains
some known or unknown quantity or info, or a value.