Computer Science 340
Programming Languages
Fall 2023, Siena College
Lecture 15: Datatypes
Date: Thursday, October 26, 2023
Agenda
- Announcements
- Problem Set 4: [HTML] [PDF] grades soon
- Problem Set 5: [HTML] [PDF] due on Monday
- Exam 2 coming in one week
- another 10% of the final grade
- open book/notes/other class materials, no other resources
- all classes (up to Lecture 15 today), readings through
Section 6.9, labs (up to 5), and problem sets (up to 5)
- Haskell basics, functions, list comprehensions
- write or augment a state machine to match a given pattern
- answer questions about/add a new kind of token to the tokenizer
- answer questions about/add a new kind of token to the parser
- first sets of a grammar, pairwise disjointness
- Programming Language of the Day: COBOL
- More datatypes
- Starting on Chapter 6 Discussion Notes (see the link in your email and/or in Canvas)
Terminology
- floating-point representations
- scientific notation
- mantissa
- exponent
- floating point underflow
- bias
- complex data
- binary coded decimal
- enumerated type
- subrange type
Examples
Links