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

UP Lecture 19

UP Lecture 19

Compilers
Error Handling - Connecting the Dots
(202504)

Javier Gonzalez-Sanchez PRO

December 22, 2023

Transcript

27 slides
  1. Dr. Javier Gonzalez-Sanchez | Compilers | 2 jgs Where Are

    We Now? Language Analysis Lexical Rules Input: Symbols Output: Words Syntaxis Rules Input: Words Output: Sentences Semantic Input: Sentences Translate or Execute Virtual Machine
  2. Dr. Javier Gonzalez-Sanchez | Compilers | 3 jgs Disclaimer ▪

    The exam will include material from Lectures 01 to 07. ▪ This is NOT an exhaustive list of exam topics. ▪ This review covers only a subset of the material. ▪ The following slides provide examples related to selected topics. ▪ Be sure to review all lecture slides and course materials thoroughly.
  3. Dr. Javier Gonzalez-Sanchez | Compilers | 9 jgs Question Give

    a parse tree for the string @1#2#(3#@4)
  4. Dr. Javier Gonzalez-Sanchez | Compilers | 12 jgs Validate Properly

    Formatted References Jafet Rodriguez, Carolina Del-Valle-Soto, and Javier Gonzalez-Sanchez. 2024. Affect-Driven VR Environment for Assisted Gait Rehabilitation. IEEE Access. IEEE. 1303-1312.
  5. Dr. Javier Gonzalez-Sanchez | Compilers | 13 jgs Validate Properly

    Formatted References Jafet Rodriguez, Carolina Del-Valle-Soto, and Javier Gonzalez-Sanchez. 2024. Affect-Driven VR Environment for Assisted Gait Rehabilitation. IEEE Access. IEEE. 1303-1312.
  6. Dr. Javier Gonzalez-Sanchez | Compilers | 14 jgs Question |

    Lexical Analysis How many terminals (tokens)? Which are terminals (tokens)?
  7. Dr. Javier Gonzalez-Sanchez | Compilers | 15 jgs Question |

    Lexical Analysis Create a DFA (transition table) for each identified token (terminal).
  8. Dr. Javier Gonzalez-Sanchez | Compilers | 16 jgs Question |

    Syntax Analysis Create a grammar to validate properly formatted references. a) Diagrams b) BNF/EBNF
  9. Dr. Javier Gonzalez-Sanchez | Compilers | 17 jgs Validate Properly

    Formatted References Non-terminals <REFERENCE> <AUTORS> <YEAR> <TITLE> <CONFERENCE> <PUBLISHER> <PAGES> Terminals string number . , -
  10. Dr. Javier Gonzalez-Sanchez | Compilers | 18 jgs Validate Properly

    Formatted References | Syntax Diagram <REFERENCE> → <AUTORS> → <YEAR> → <TITLE> → <CONFERENCE> → <PUBLISHER> → <PAGES> →
  11. Dr. Javier Gonzalez-Sanchez | Compilers | 19 jgs Validate Properly

    Formatted References | BNF/EBNF <REFERENCE> → <AUTORS> → <YEAR> → <TITLE> → <CONFERENCE> → <PUBLISHER> → <ADDRRESS> → <PAGES> →
  12. Dr. Javier Gonzalez-Sanchez | Compilers | 22 jgs Validate Properly

    Formatted References | Derivation Tree reference
  13. jgs Compilers Javier Gonzalez-Sanchez, Ph.D. [email protected] Spring 2025 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