Skip to content
VUBuddy

CS606 Short Notes Lecture 17

Compiler Construction PDF 16 KBUpdated 23 Oct 2026
Quiz CS606 Short Notes Lecture 17 PDF 16 KB
vubuddy.com
Type
Quiz
Course
CS606 Compiler Construction
Size
PDF 16 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 16 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from page 1 of 1. Download the file for all 1 page.

Lecture 17

Note that productions output are tracing out a lefmost derivation. The grammar symbols on the stack make up left-sentential forms.

LL(1) Table Construction

Top-down parsing expands a parse tree from the start symbol to the leaves. It always expand the leftmost non-terminal. Consider the state

S ? ∗ β Aγ

with b the next token and we are trying to match β bγ. There are two possibilities

  1. b belongs to an expansion of A. Any A ? α can be used if b can start a string derived from α. In this case we say that b ∈ FIRST(α )

Q2. b does not belong to an expansion of A . Expansion of A is empty, i.e., A ? ε and b belongs an expansion of γ , e.g., bω. which means that b can appear after A in a derivation of the form S ?

∗ β Abω. We say that b ∈ FOLLOW(A).

Any A ? α can be used if α expands to ε. We say that ε ∈ FIRST(A) in this case.

Definition

FIRST(X) = { b | X ? ∗ ba } ∪ { ε | X ? ∗ ε }

All CS606 files →
CS606 Compiler Construction All CS606 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.