PPL Unit - I
PPL Unit - I
Unit - I
Preliminary Concepts, Syntax and
Semantics
History of Programming
Languages
Reasons for Studying Concepts of Programming Languages
Introduction
The General Problem of Describing Syntax
Formal Methods of Describing Syntax
Attribute Grammars
Describing the Meanings of Programs
What do you mean by
Syntax?
the form or structure of the
expressions, statements, and
program units
What do you mean by
Semantics?
the meaning of the
expressions, statements, and
program units
Example of an
Syntax
the syntax of a Java while
statement is
Terminologies
Sentence
Language
Lexeme
Token
Terminologies - Definition
The text on the left side of the arrow, which is aptly called the
left-hand side (LHS), is the abstraction being defined
The lexemes and tokens of the rules are called terminal symbols, or
simply terminals.
with the
rule