LL(1) grammars: summary
Fixing problems with grammars
Informatics 2A: Lecture 13 John Longley
School of Informatics University of Edinburgh jrl@staffmail.ed.ac.uk
18 October, 2011
1 / 18
Fixing problems with grammars Informatics 2A: Lecture 13 John - - PowerPoint PPT Presentation
LL(1) grammars: summary Fixing problems with grammars Informatics 2A: Lecture 13 John Longley School of Informatics University of Edinburgh jrl@staffmail.ed.ac.uk 18 October, 2011 1 / 18 LL(1) grammars: summary LL(1) grammars: summary
LL(1) grammars: summary
1 / 18
LL(1) grammars: summary
2 / 18
LL(1) grammars: summary
1 They may be ambiguous (bad anyway for computer langs.) 2 They may have rules with shared prefixes: e.g. how would we
3 They may be left-recursive rules, where the LHS nonterminal
3 / 18
LL(1) grammars: summary
4 / 18
LL(1) grammars: summary
5 / 18
LL(1) grammars: summary
6 / 18
LL(1) grammars: summary
7 / 18
LL(1) grammars: summary
8 / 18
LL(1) grammars: summary
9 / 18
LL(1) grammars: summary
10 / 18
LL(1) grammars: summary
11 / 18
LL(1) grammars: summary
12 / 18
LL(1) grammars: summary
13 / 18
LL(1) grammars: summary
14 / 18
LL(1) grammars: summary
15 / 18
LL(1) grammars: summary
16 / 18
LL(1) grammars: summary
17 / 18
LL(1) grammars: summary
18 / 18