CONSTRUCTOR TABLES of the Grammar G22.grm
Parameters
File G22.prm
struct parm{
int nr //tähestiku V pikkus
int tnr //tähestiku VT pikkus
int BRC //0: G on pööratav
int Pnr //Produktsioonide arv
int dep //1: sõltuv kontekst
int itl //identifikaatorite arv (Parser)
int ktl //konstantide arv (Parser)
}
nr=11 tnr=5 BRC=1 Pnr=9 dep=0 itl=0 ktl=0
Alphabet V
File G22.t
# a b 0 1 T S A B C B1
Scanner Table
File G22.tt
# a b 0 1
Tree of the Alphabet V
File G22.v
struct R{
int P; /* produktsiooni jrk-nr */
int sem; /* semantikakood */
int n; /* NT definitsiooni pikkus */
int *d; /* NT definitsioon */
struct R *alt; /* NT alternatiivne definitsioon */
}
struct D{
int tunnus; /* 0: NT, 1: T */
int code; /* vahekeelne kood */
int L; /* NT või id/const nime pikkus */
int loc; /* ident | const : nr */
int icx; /* itl või ktl - IT või KT index */
struct D *left; /* kahendpuu viidad (võti on T[code]) */
struct D *right;
struct R *def;
}
D 00490040: tunnus=1 code=1 L=1 loc=0 icx=0 left=00000000 right=00491C90 def=00000000 (#)
D 00491BF0: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=00491BA0 def=00000000 (0)
D 00491BA0: tunnus=1 code=5 L=1 loc=0 icx=0 left=00000000 right=00491A10 def=00000000 (1)
D 004917B0: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00491640 def=004912D0 (A)
R 004912D0: P=5 sem=0 n=2 d=00491290 alt=00491440
d 00491290: 10 5
R 00491440: P=4 sem=0 n=3 d=00491400 alt=00000000
d 00491400: 4 8 5
D 00491640: tunnus=0 code=9 L=1 loc=0 icx=0 left=00000000 right=00491360 def=00491110 (B)
R 00491110: P=6 sem=0 n=3 d=00492EB0 alt=00000000
d 00492EB0: 11 10 5
D 00492F60: tunnus=0 code=11 L=2 loc=0 icx=0 left=00000000 right=00000000 def=00492F20 (B1)
R 00492F20: P=8 sem=0 n=1 d=00492EF0 alt=00000000
d 00492EF0: 5
D 00491360: tunnus=0 code=10 L=1 loc=0 icx=0 left=00492F60 right=00000000 def=00492FE0 (C)
R 00492FE0: P=7 sem=0 n=1 d=00492FB0 alt=00000000
d 00492FB0: 5
D 00491970: tunnus=0 code=7 L=1 loc=0 icx=0 left=004917B0 right=00000000 def=00491600 (S)
R 00491600: P=3 sem=0 n=2 d=004915C0 alt=00491770
d 004915C0: 3 9
R 00491770: P=2 sem=0 n=2 d=00491730 alt=00000000
d 00491730: 2 8
D 00491A10: tunnus=0 code=6 L=1 loc=0 icx=0 left=00491970 right=00000000 def=004918E0 (T)
R 004918E0: P=1 sem=0 n=3 d=004918A0 alt=00000000
d 004918A0: 1 7 1
D 00491C90: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491BF0 right=00491C40 def=00000000 (a)
D 00491C40: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (b)
Reduce Table
File G22.ht
struct h{
int P; /* produktsiooni jrk-nr */
int n; /* definitsiooni pikkus */
int NT; /* defineeritav nonterminal */
int *d; /* definitsioon */
int nc; /* 1 - sõltuv kontekst */
char *c; /* reservis */
struct h *same; /* sama parem pool */
struct h *col; /* põrkeviit */
}
h 00492B90: P=6 n=3 NT=9 d=00492B50 nc=0 same=00000000 col=00000000 (B)
d 00492B50: 11 10 5
h 00492B00: P=7 n=1 NT=10 d=00492AD0 nc=0 same=00492A80 col=00000000 (C)
d 00492AD0: 5
h 00492A80: P=8 n=1 NT=11 d=00492A50 nc=0 same=00000000 col=00000000 (B1)
d 00492A50: 5
h 00492E60: P=1 n=3 NT=6 d=00492E20 nc=0 same=00000000 col=00000000 (T)
d 00492E20: 1 7 1
h 00492C20: P=4 n=3 NT=8 d=00492BE0 nc=0 same=00000000 col=00000000 (A)
d 00492BE0: 4 8 5
h 00492D40: P=2 n=2 NT=7 d=00492D00 nc=0 same=00000000 col=00492DD0 (S)
d 00492D00: 2 8
h 00492DD0: P=3 n=2 NT=7 d=00492D90 nc=0 same=00000000 col=00000000 (S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