SLIDE 1
Formal Languages
CS 100: Introduction to the Profession Matthew Bauer & Michael Saelee
Formal Languages CS 100: Introduction to the Profession Matthew - - PowerPoint PPT Presentation
Formal Languages CS 100: Introduction to the Profession Matthew Bauer & Michael Saelee Some languages - Natural languages: English, Chinese, Thai - Programming languages: Java, Lisp, Lambda calculus - Domain specific languages: SQL,
CS 100: Introduction to the Profession Matthew Bauer & Michael Saelee
A formal grammar consists of:
must be ≤ # symbols on right hand side
symbol (a non-terminal)
A → aB, where A and B are non-terminals, and a is a terminal
All languages Type 0 languages Type 1: Context-sensitive languages Type 2: Context-free languages Type 3: Regular languages
S0 S0 S1
S0 S0 S1