GATE CS compiler design: lexing and LL(1) parsing tables
12 steps · about 6 h 40 min · Intermediate
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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).
- 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.
- 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.
- 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.