Содержание
- 2. Formal Languages Intro to compilers
- 3. LA Formal Languages
- 4. Intro to compilers • Alphabet = English characters • Language = English sentences Formal Languages •
- 5. Intro to compilers Meaning function L maps syntax to semantics Meaning function reg expr L(E) =
- 6. Intro to compilers Meaning function ‘ c ’ = ɛ = { “ “ } {
- 7. Intro to compilers Meaning function L(‘ c ’) = L( ɛ ) = { “ “
- 8. LA Why use a meaning function? – Makes clear what is syntax, what is semantics. –
- 9. LA Meaning function 0 1 42 107 I IV X XL
- 10. LA Syntax and Semantic 0* 0 + 0* E + 00* E + 0 + 0*
- 11. LA Syntax and Semantic Meaning is many to one – Never one to many!
- 13. Скачать презентацию