GATE CS compiler design: lexing and LL(1) parsing tables

12 steps · about 6 h 40 min · Intermediate

  1. Lexical Analysis - Compiler Design Course (doc, m-zakeri.ir, 25 min)

    It gives the overall lexer pipeline of tokens, regexes, NFA, DFA and transition table, so the later steps have a map.

  2. Lexical Analysis - CSU086 (Compiler Design) (article, dmj.one, 20 min)

    It ties lexemes, tokens and patterns together with a small working Python lexer before you do the automata work.

  3. Lecture Notes on Lexical Analysis 15-411: Compiler Design (doc, Carnegie Mellon University, 35 min)

    It derives regex to NFA to DFA with the longest-match and priority rules that GATE lexer questions test.

  4. CS143 Lecture 4: Implementation of Lexical Analysis (doc, Stanford University, 40 min)

    Its worked regex to NFA to DFA to table conversions give you practice on the same construction exam questions use.

  5. Top-down parsing (LL1 lecture) (doc, UT Austin, CS375, 30 min)

    It moves from lexing to top-down parsing and shows the order: nullable, then FIRST, then FOLLOW, then the table.

  6. LL(1) Grammars in Compiler Design (article, TutorialsPoint, 15 min)

    A tiny grammar worked end to end shows what makes a grammar LL(1) before you tackle bigger ones.

  7. Construction of LL(1) Parsing Table (article, GeeksforGeeks, 25 min)

    Its step-by-step algorithm shows where epsilon productions go (under FOLLOW), which is the usual place to slip.

  8. Compiler Design Lecture Notes (doc, Dr. Subasish, CET, 40 min)

    The classic E, E', T, T', F expression grammar is solved in full, which is the standard exam pattern.

  9. Lecture 9: LL(1) parsing (doc, Johns Hopkins University (David Hovemeyer), 30 min)

    It adds the FIRST+ formulation and the no-left-recursion requirement, so you can test whether a grammar is LL(1).

  10. LL(1) Parsing in Compiler Design - Complete Beginner Guide (article, CSEGyan, 25 min)

    It covers running the predictive parser with a stack and lists common mistakes with FIRST and FOLLOW.

  11. Compiler Design: LL(1) Parser (article, CosmicLearn, 25 min)

    Its Python table-driven parser driver lets you see how the table is used when parsing a string.

  12. Parsing (reference, ExamSide, 1 h 30 min)

    A large bank of 1- and 2-mark GATE parsing questions across many years makes a final timed drill.