CONSTRUCTOR TABLES of the Grammar G18.grm


Parameters

File G18.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 G18.t
# a b c T S U V S1 




Scanner Table

File G18.tt
# a b c  



Tree of the Alphabet V

File G18.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=0 code=6 L=1 loc=0 icx=0 left=00000000 right=004911D0 def=00491810 (S)
R 00491810: P=2 sem=0 n=2 d=00491120 alt=00000000
d 00491120: 7 9
D 004911D0: tunnus=0 code=9 L=2 loc=0 icx=0 left=00000000 right=00000000 def=00491190 (S1)
R 00491190: P=7 sem=0 n=1 d=00491160 alt=00000000
d 00491160: 8
D 00491AB0: tunnus=0 code=5 L=1 loc=0 icx=0 left=00491A10 right=004918A0 def=00491980 (T)
R 00491980: P=1 sem=0 n=3 d=00491940 alt=00000000
d 00491940: 1 6 1
D 004918A0: tunnus=0 code=7 L=1 loc=0 icx=0 left=00000000 right=00491850 def=004914E0 (U)
R 004914E0: P=4 sem=0 n=2 d=004914A0 alt=00491650
d 004914A0: 2 3
R 00491650: P=3 sem=0 n=3 d=00491610 alt=00000000
d 00491610: 2 7 3
D 00491850: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00491250 (V)
R 00491250: P=6 sem=0 n=1 d=00491220 alt=00491370
d 00491220: 4
R 00491370: P=5 sem=0 n=2 d=00491330 alt=00000000
d 00491330: 8 4
D 00491C90: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491AB0 right=00491C40 def=00000000 (a)
D 00491C40: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00491B50 def=00000000 (b)
D 00491B50: tunnus=1 code=4 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (c)

Reduce Table

File G18.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=004910D0 (U)
d 00492E40: 2 7 3
h 004910D0: P=1 n=3 NT=5 d=00491090 nc=0 same=00000000 col=00000000 (T)
d 00491090: 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 00491040: P=2 n=2 NT=6 d=00492FE0 nc=0 same=00000000 col=00000000 (S)
d 00492FE0: 7 9

Precedence Matrix

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



Semantics

File G18.sm

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