Chapter 3 – Describing Syntax and Semantics - University of Texas at ...
!" #
Chapter 3 ? Describing Syntax and Semantics
CS-4337 Organization of Programming Languages
Dr. Chris Irwin Davis
Email: cid021000@utdallas.edu Phone: (972) 883-3574 Office: ECSS 4.705
Chapter 3 Topics
? Introduction ? The General Problem of Describing Syntax ? Formal Methods of Describing Syntax ? Attribute Grammars ? Describing the Meanings of Programs:
Dynamic Semantics
1-2
Introduction
?Syntax: the form or structure of the expressions, statements, and program units
?Semantics: the meaning of the expressions, statements, and program units
?Syntax and semantics provide a language's definition
? Users of a language definition
?Other language designers ?Implementers ?Programmers (the users of the language)
1-3
The General Problem of Describing Syntax: Terminology
?A sentence is a string of characters over some alphabet
?A language is a set of sentences ?A lexeme is the lowest level syntactic unit of a
language (e.g., *, sum, begin) ?A token is a category of lexemes (e.g.,
identifier)
1-4
Example: Lexemes and Tokens
index = 2 * count + 17
Lexemes
Tokens
index = 2 * count + 17 ;
identifier equal_sign int_literal mult_op identifier plus_op int_literal semicolon
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- 1 meaning and semantics
- chapter 3 describing syntax and semantics university of texas at
- the semantics of types university of new haven
- semantic theory lecture 2 type theory universität des saarlandes
- semantic types and type shifting conjunction and type umass
- semantics i id
- types of meaning in semantics
- semantics
- compositional semantics harvard university
- semantics the analysis of meaning
Related searches
- university of texas at austin
- university of texas at austin online
- university of texas at dallas graduate school
- university of texas at dallas housing
- university of texas at austin online masters
- chapter 3 cell structure and function answers
- chapter 3 cellular structure and function key
- university of texas at austin athletics
- university of texas out of state tuition
- university of texas cost of attendance 2021
- university of texas at austin costs
- university of texas at austin cost