CONSTRUCTOR TABLES of the Grammar G26.grm


Parameters

File G26.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=5 BRC=1 Pnr=9 dep=1 itl=0 ktl=0


Alphabet V

File G26.t
# a b 1 c T S A B 




Scanner Table

File G26.tt
# a b 1 c  



Tree of the Alphabet V

File G26.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=00491C80 def=00000000 (#)
D 00491A00: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=004918C0 def=00000000 (1)
D 00491660: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=004912E0 def=00492C80 (A)
R 00492C80: P=8 sem=0 n=3 d=00492C40 alt=00492F40
d 00492C40: 5 9 5
R 00492F40: P=6 sem=0 n=1 d=00492F10 alt=00000000
d 00492F10: 4
D 004912E0: tunnus=0 code=9 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00492E30 (B)
R 00492E30: P=7 sem=0 n=1 d=00492E00 alt=00000000
d 00492E00: 4
D 00491820: tunnus=0 code=7 L=1 loc=0 icx=0 left=00491660 right=00000000 def=00491090 (S)
R 00491090: P=5 sem=0 n=3 d=00491050 alt=00491250
d 00491050: 3 9 2
R 00491250: P=4 sem=0 n=3 d=00491210 alt=00491410
d 00491210: 2 9 3
R 00491410: P=3 sem=0 n=3 d=004913D0 alt=004915D0
d 004913D0: 3 8 3
R 004915D0: P=2 sem=0 n=3 d=00491590 alt=00000000
d 00491590: 2 8 2
D 004918C0: tunnus=0 code=6 L=1 loc=0 icx=0 left=00491820 right=00000000 def=00491790 (T)
R 00491790: P=1 sem=0 n=3 d=00491750 alt=00000000
d 00491750: 1 7 1
D 00491C80: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491A00 right=00491BE0 def=00000000 (a)
D 00491BE0: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00491960 def=00000000 (b)
D 00491960: tunnus=1 code=5 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (c)

Reduce Table

File G26.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 00492890: P=6 n=1 NT=8 d=00492860 nc=1 same=00492810 col=00000000  (A)
d 00492860: 4
h 00492810: P=7 n=1 NT=9 d=004927E0 nc=1 same=00000000 col=00000000 (B)
d 004927E0: 4
h 00492BF0: P=1 n=3 NT=6 d=00492BB0 nc=0 same=00000000 col=00000000 (T)
d 00492BB0: 1 7 1
h 004929B0: P=2 n=3 NT=7 d=00492970 nc=0 same=00000000 col=00492A40 (S)
d 00492970: 2 8 2
h 00492A40: P=3 n=3 NT=7 d=00492A00 nc=0 same=00000000 col=00492AD0 (S)
d 00492A00: 3 8 3
h 00492AD0: P=4 n=3 NT=7 d=00492A90 nc=0 same=00000000 col=00492B60 (S)
d 00492A90: 2 9 3
h 00492B60: P=5 n=3 NT=7 d=00492B20 nc=0 same=00000000 col=00000000 (S)
d 00492B20: 3 9 2
h 00492920: P=8 n=3 NT=8 d=004928E0 nc=0 same=00000000 col=00000000 (A)
d 004928E0: 5 9 5

Precedence Matrix

File G26.pm
Nr123456789
1022000100
2400220011
3400220011
4044040000
5044200001
6000000000
7100000000
8011000000
9011010000



Left Context

File G26.lc
Nr123456789
6000000000
7100000000
8011000000
9011010000



Right Context

File G26.rc
Nr12345
600000
710000
801100
901101





Dependent Context

File G26.dc

DEP[8]=004925C0
L[2]=00492580
rc[2]=1
L[3]=00492540
rc[3]=1

DEP[9]=004924E0
L[2]=004924A0
rc[3]=1
L[3]=00492460
rc[2]=1
L[5]=00492420
rc[5]=1



Semantics

File G26.sm

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