CONSTRUCTOR TABLES of the Grammar G5.grm


Parameters

File G5.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=8 tnr=4 BRC=0 Pnr=6 dep=0 itl=0 ktl=0


Alphabet V

File G5.t
# a b c T S U V 




Scanner Table

File G5.tt
# a b c  



Tree of the Alphabet V

File G5.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=00000000 def=004918D0 (S)
R 004918D0: P=2 sem=0 n=2 d=00491890 alt=00000000
d 00491890: 7 8
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 00491960: tunnus=0 code=7 L=1 loc=0 icx=0 left=00000000 right=00491910 def=00491760 (U)
R 00491760: P=3 sem=0 n=2 d=00491720 alt=00000000
d 00491720: 2 3
D 00491910: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 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 8
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 G5.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 00491330: P=3 n=2 NT=7 d=004912F0 nc=0 same=00000000 col=00000000  (U)
d 004912F0: 2 3
h 004912A0: P=5 n=1 NT=8 d=00491270 nc=0 same=00000000 col=00000000 (V)
d 00491270: 4
h 00491450: P=1 n=3 NT=5 d=00491410 nc=0 same=00000000 col=00000000 (T)
d 00491410: 1 6 1
h 00491220: P=4 n=2 NT=8 d=004911E0 nc=0 same=00000000 col=00000000 (V)
d 004911E0: 4 8
h 004913C0: P=2 n=2 NT=6 d=00491380 nc=0 same=00000000 col=00000000 (S)
d 00491380: 7 8

Precedence Matrix

File G5.pm
Nr12345678
102000120
200100000
300040004
440020001
500000000
610000000
700020001
840000000



Semantics

File G5.sm

1 2 3 4 5 6 7 8 9 0