February 2022
Beginner to intermediate
572 pages
13h
English
To simplify the parsing process, information from the npda combined with lookaheads can be stored in a table called the LL(k) Parse Table. For now we focus on k = 1, and show how to build an LL(1) Parse Table.
For a context-free grammar G = (V, T, S, P), the rows of the table are labeled with A ∈ V and the columns of the table are labeled with a ∈ T∪{$}, the symbols that could be a lookahead.
To construct the LL(1) Parse Table. Let A ∈ V, and w ∈ (V ∪ T)*.