Csc3205-Bottomup-Parsing
Csc3205-Bottomup-Parsing
Marriette Katarahweire
The Idea
Shift-Reduce Parsing
LR Parsers
LR Parsing Tables
Read the input and check if any production matches with the
input:
a+b∗c
T +b∗c
E +b∗c
E +T ∗c
E ∗c
E ∗T
E
S
E → E + T |F
T → T ∗ F |F
F → (E )|id
Derive a bottom-up parse tree for the string id ∗ id
Read about:
-LR Parsing Tables
- Semantic Analysis