CONSTRUCTOR TABLES of the Grammar G3.grm


Parameters

File G3.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=8 dep=0 itl=0 ktl=0


Alphabet V

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




Scanner Table

File G3.tt
# a b c  



Tree of the Alphabet V

File G3.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=00491CA0 def=00000000 (#)
D 00491A20: tunnus=0 code=6 L=1 loc=0 icx=0 left=00000000 right=004911E0 def=00491820 (S)
R 00491820: P=2 sem=0 n=2 d=00491130 alt=00000000
d 00491130: 7 9
D 004911E0: tunnus=0 code=9 L=2 loc=0 icx=0 left=00000000 right=00000000 def=004911A0 (S1)
R 004911A0: P=7 sem=0 n=1 d=00491170 alt=00000000
d 00491170: 8
D 00491AC0: tunnus=0 code=5 L=1 loc=0 icx=0 left=00491A20 right=004918B0 def=00491990 (T)
R 00491990: P=1 sem=0 n=3 d=00491950 alt=00000000
d 00491950: 1 6 1
D 004918B0: tunnus=0 code=7 L=1 loc=0 icx=0 left=00000000 right=00491860 def=004914F0 (U)
R 004914F0: P=4 sem=0 n=2 d=004914B0 alt=00491660
d 004914B0: 2 3
R 00491660: P=3 sem=0 n=3 d=00491620 alt=00000000
d 00491620: 2 7 3
D 00491860: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00491260 (V)
R 00491260: P=6 sem=0 n=1 d=00491230 alt=00491380
d 00491230: 4
R 00491380: P=5 sem=0 n=2 d=00491340 alt=00000000
d 00491340: 8 4
D 00491CA0: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491AC0 right=00491C50 def=00000000 (a)
D 00491C50: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00491B60 def=00000000 (b)
D 00491B60: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (c)

Reduce Table

File G3.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 00492F10: P=4 n=2 NT=7 d=00492ED0 nc=0 same=00000000 col=00000000  (U)
d 00492ED0: 2 3
h 00492DF0: P=6 n=1 NT=8 d=00492DC0 nc=0 same=00000000 col=00000000 (V)
d 00492DC0: 4
h 00492E80: P=3 n=3 NT=7 d=00492E40 nc=0 same=00000000 col=004910E0 (U)
d 00492E40: 2 7 3
h 004910E0: P=1 n=3 NT=5 d=004910A0 nc=0 same=00000000 col=00000000 (T)
d 004910A0: 1 6 1
h 00492F90: P=7 n=1 NT=9 d=00492F60 nc=0 same=00000000 col=00000000 (S1)
d 00492F60: 8
h 00492D70: P=5 n=2 NT=8 d=00492D30 nc=0 same=00000000 col=00000000 (V)
d 00492D30: 8 4
h 00491050: P=2 n=2 NT=6 d=00492FE0 nc=0 same=00000000 col=00000000 (S)
d 00492FE0: 7 9

Precedence Matrix

File G3.pm
Nr123456789
1020001200
2021000100
3004400044
4400400000
5000000000
6100000000
7001200021
8400100000
9400000000



Semantics

File G3.sm

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