CONSTRUCTOR TABLES of the Grammar G10.grm


Parameters

File G10.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=11 dep=1 itl=0 ktl=0


Alphabet V

File G10.t
# a b 1 c T S A B S1 S2 




Scanner Table

File G10.tt
# a b 1 c  



Tree of the Alphabet V

File G10.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 00491A10: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=00491920 def=00000000 (1)
D 004916C0: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00491340 def=00492D50 (A)
R 00492D50: P=8 sem=0 n=2 d=00492D10 alt=00492F90
d 00492D10: 9 5
R 00492F90: P=6 sem=0 n=1 d=00491030 alt=00000000
d 00491030: 4
D 00491340: tunnus=0 code=9 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00492EB0 (B)
R 00492EB0: P=7 sem=0 n=1 d=00492E80 alt=00000000
d 00492E80: 4
D 00491880: tunnus=0 code=7 L=1 loc=0 icx=0 left=004916C0 right=00492CC0 def=004910F0 (S)
R 004910F0: P=5 sem=0 n=2 d=00492AF0 alt=004912B0
d 00492AF0: 3 11
R 004912B0: P=4 sem=0 n=2 d=00492C00 alt=00491470
d 00492C00: 2 10
R 00491470: P=3 sem=0 n=3 d=00491430 alt=00491630
d 00491430: 3 8 3
R 00491630: P=2 sem=0 n=3 d=004915F0 alt=00000000
d 004915F0: 2 8 2
D 00492CC0: tunnus=0 code=10 L=2 loc=0 icx=0 left=00000000 right=00492BB0 def=00492C80 (S1)
R 00492C80: P=9 sem=0 n=2 d=00492C40 alt=00000000
d 00492C40: 9 3
D 00492BB0: tunnus=0 code=11 L=2 loc=0 icx=0 left=00000000 right=00000000 def=00492B70 (S2)
R 00492B70: P=10 sem=0 n=2 d=00492B30 alt=00000000
d 00492B30: 9 2
D 00491920: tunnus=0 code=6 L=1 loc=0 icx=0 left=00491880 right=00000000 def=004917F0 (T)
R 004917F0: P=1 sem=0 n=3 d=004917B0 alt=00000000
d 004917B0: 1 7 1
D 00491C90: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491A10 right=00491BF0 def=00000000 (a)
D 00491BF0: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00491970 def=00000000 (b)
D 00491970: tunnus=1 code=5 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (c)

Reduce Table

File G10.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 00492740: P=6 n=1 NT=8 d=00492710 nc=1 same=004926C0 col=00000000  (A)
d 00492710: 4
h 004926C0: P=7 n=1 NT=9 d=00492690 nc=1 same=00000000 col=00000000 (B)
d 00492690: 4
h 00492AA0: P=1 n=3 NT=6 d=00492A60 nc=0 same=00000000 col=00000000 (T)
d 00492A60: 1 7 1
h 00492860: P=2 n=3 NT=7 d=00492820 nc=0 same=00000000 col=004928F0 (S)
d 00492820: 2 8 2
h 004928F0: P=3 n=3 NT=7 d=004928B0 nc=0 same=00000000 col=00492980 (S)
d 004928B0: 3 8 3
h 00492980: P=4 n=2 NT=7 d=00492940 nc=0 same=00000000 col=00492A10 (S)
d 00492940: 2 10
h 00492A10: P=5 n=2 NT=7 d=004929D0 nc=0 same=00000000 col=00000000 (S)
d 004929D0: 3 11
h 00492640: P=9 n=2 NT=10 d=00492600 nc=0 same=00000000 col=00000000 (S1)
d 00492600: 9 3
h 004925B0: P=10 n=2 NT=11 d=00492570 nc=0 same=00000000 col=00000000 (S2)
d 00492570: 9 2
h 004927D0: P=8 n=2 NT=8 d=00492790 nc=0 same=00000000 col=00000000 (A)
d 00492790: 9 5

Precedence Matrix

File G10.pm
Nr1234567891011
102200010000
240020001210
340020001201
404404000000
504400000000
600000000000
710000000000
801100000000
901101000000
1040000000000
1140000000000



Left Context

File G10.lc
Nr1234567891011
600000000000
710000000000
801100000000
901100000000
1001000000000
1100100000000



Right Context

File G10.rc
Nr12345
600000
710000
801100
901101
1010000
1110000





Dependent Context

File G10.dc

DEP[8]=004922F0
L[2]=004922B0
rc[2]=1
L[3]=00492270
rc[3]=1

DEP[9]=00492210
L[2]=004921D0
rc[3]=1 rc[5]=1
L[3]=00492190
rc[2]=1 rc[5]=1



Semantics

File G10.sm

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