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)
d 00492D90: 3 9
h 00492CB0: P=5 n=2 NT=8 d=00492C70 nc=0 same=00000000 col=00000000 (A)
d 00492C70: 10 5

Precedence Matrix

File G22.pm
Nr1234567891011
102200010000
200022001020
300002000102
400022001020
540004000040
600000000000
710000000000
840001000000
940000000000
1000001000000
1100002000010



Left Context

File G22.lc
Nr1234567891011
600000000000
710000000000
801010000000
900100000000
1001010000001
1100100000000



Right Context

File G22.rc
Nr12345
600000
710000
810001
910000
1000001
1100001





Semantics

File G22.sm

1 2 3 4 5 6 7 8 9 10 11 12 13 0