Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UP Lecture 05

UP Lecture 05

Compilers
Test Cases for Lexical Analysis
(202402)

Javier Gonzalez-Sanchez PRO

December 08, 2023

Transcript

10 slides
  1. Dr. Javier Gonzalez-Sanchez | Compilers | 3 jgs Announcements Lunes

    y Miercoles 8:30 a 10 pm Primer Examen Parcial (25 de Febrero) Marzo 10 regresamos: Martes y Jueves 6:00 a 8:30 pm
  2. Dr. Javier Gonzalez-Sanchez | Compilers | 4 jgs Key Ideas

    Lexical Alphabet Symbol String Word Token Rules Regular Expression Deterministic Finite Automata
  3. Dr. Javier Gonzalez-Sanchez | Compilers | 6 jgs Review |

    Lexical Analysis Are the following STRINGS correct or not? Why? ▪ 000000005 ▪ 000000009 ▪ 000000009.1 ▪ 000000005 ▪ 000000005.1 ▪ 0x0000002 ▪ 0123456789
  4. Dr. Javier Gonzalez-Sanchez | Compilers | 7 jgs Review |

    Lexical Analysis Are the following STRINGS correct or not? Why? ▪ 1.2e---3++ ▪ $50 ▪ float ________________ = 5; ▪ double x = 000000.1; ▪ '''a' ▪ '\''b' ▪ '\'b'
  5. Dr. Javier Gonzalez-Sanchez | Compilers | 8 jgs Review |

    Lexical Analysis Are the following STRINGS correct or not? Why? ▪ " \\\\\\\\\\a" ▪ "Hello""world" ▪ abc"Hello" ▪ ''' ▪ '\x' ▪ '\a' ▪ '\w' ▪ "\\\” ▪ '\\\'
  6. jgs Compilers Javier Gonzalez-Sanchez, Ph.D. [email protected] Spring 2024 Copyright. These

    slides can only be used as study material for the Compilers course at Universidad Panamericana. They cannot be distributed or used for another purpose.

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming