- Type
- Quiz
- Course
- CS606 Compiler Construction
- Size
- PDF 16 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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
- 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 ? ∗ ε }
Related CS606 files
All CS606 files →- CS606 Final Term Highlighted Handouts Lectures 19-45 Set 2 by Masters Highlighted PDF 1.4 MB
- CS606 Midterm Solved MCQs Set 2 by Junaid Midterm PDF 1.2 MB
- CS606 Short Notes Lecture 16 Quiz PDF 33 KB
- CS606 Short Notes Lecture 3 Quiz PDF 25 KB
- CS606 Short Notes Lecture 9 Quiz PDF 26 KB
- CS606 Short Notes Lecture 12 Quiz PDF 40 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.