CONSTRUCTOR TABLES of the Grammar GA20.grm


Parameters

File GA20.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=9 tnr=4 BRC=0 Pnr=7 dep=0 itl=0 ktl=0


Alphabet V

File GA20.t
# a b c T S V U S1 




Scanner Table

File GA20.tt
# a b c  



Tree of the Alphabet V

File GA20.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=00491CB0 def=00000000 (#)
D 00491AD0: tunnus=0 code=6 L=1 loc=0 icx=0 left=00000000 right=00491450 def=004918D0 (S)
R 004918D0: P=2 sem=0 n=2 d=004913B0 alt=00000000
d 004913B0: 9 8
D 00491450: tunnus=0 code=9 L=2 loc=0 icx=0 left=00000000 right=00000000 def=00491410 (S1)
R 00491410: P=6 sem=0 n=1 d=004913E0 alt=00000000
d 004913E0: 7
D 00491B70: tunnus=0 code=5 L=1 loc=0 icx=0 left=00491AD0 right=00491960 def=00491A40 (T)
R 00491A40: P=1 sem=0 n=3 d=00491A00 alt=00000000
d 00491A00: 1 6 1
D 00491910: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00491760 (U)
R 00491760: P=3 sem=0 n=2 d=00491720 alt=00000000
d 00491720: 2 3
D 00491960: tunnus=0 code=7 L=1 loc=0 icx=0 left=00491910 right=00000000 def=004914D0 (V)
R 004914D0: P=5 sem=0 n=1 d=004914A0 alt=004915F0
d 004914A0: 4
R 004915F0: P=4 sem=0 n=2 d=004915B0 alt=00000000
d 004915B0: 4 7
D 00491CB0: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491B70 right=00491C60 def=00000000 (a)
D 00491C60: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00491C10 def=00000000 (b)
D 00491C10: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (c)

Reduce Table

File GA20.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 004910B0: P=3 n=2 NT=8 d=00491070 nc=0 same=00000000 col=004912D0  (U)
d 00491070: 2 3
h 004912D0: P=2 n=2 NT=6 d=00491290 nc=0 same=00000000 col=00000000 (S)
d 00491290: 9 8
h 00491140: P=4 n=2 NT=7 d=00491100 nc=0 same=00000000 col=00000000 (V)
d 00491100: 4 7
h 004911C0: P=5 n=1 NT=7 d=00491190 nc=0 same=00000000 col=00000000 (V)
d 00491190: 4
h 00491360: P=1 n=3 NT=5 d=00491320 nc=0 same=00000000 col=00000000 (T)
d 00491320: 1 6 1
h 00491240: P=6 n=1 NT=9 d=00491210 nc=0 same=00000000 col=00000000 (S1)
d 00491210: 7

Precedence Matrix

File GA20.pm
Nr123456789
1000201202
2001000000
3400000000
4040200140
5000000000
6100000000
7040000040
8400000000
9020000010



Semantics

File GA20.sm

1 2 3 4 5 6 7 8 9 10 0