Description: 1. Below for a given LL (1) grammar.
G [<P>]:
1) <P>-> program <D>: <T> begin <S> end {program}
2) D-> i D {i}
3) D ->, i D {,}
4) D -> ε {:}
5) S-> s S {s}
6) S -> s S { }
7) S -> ε {end}
8) T-> real {real}
9) T-> integer {integer}
{} within which the right to produce an optional set.
2. Debug and improve the grammar given in the following LL (1) analyzer sample program, and set the input sentence is the grammar:
program
i, i, i: integer
begin
s s s
end
Output and analysis are given instructions.
To Search:
File list (Check if you may need any files):
LL (1) parser\Debug\text3.exe
.............\.....\text3.ilk
.............\.....\text3.obj
.............\.....\text3.pch
.............\.....\text3.pdb
.............\.....\vc60.idb
.............\.....\vc60.pdb
.............\g1.dat
.............\LL1.dat
.............\text3-1.txt
.............\text3-2.txt
.............\text3.cpp
.............\text3.dsp
.............\text3.dsw
.............\text3.ncb
.............\text3.opt
.............\text3.plg
.............\Debug
LL (1) parser