CONSTRUCTOR TABLES of the Grammar G29.grm
Parameters
File G29.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=8 BRC=0 Pnr=10 dep=0 itl=0 ktl=0
Alphabet V
File G29.t
# n x b c d e f S N A
Scanner Table
File G29.tt
# n x b c d e f
Tree of the Alphabet V
File G29.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 00491850: tunnus=0 code=11 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00491040 (A)
R 00491040: P=9 sem=0 n=1 d=00492FF0 alt=00491150
d 00492FF0: 8
R 00491150: P=8 sem=0 n=1 d=00491120 alt=00491260
d 00491120: 7
R 00491260: P=7 sem=0 n=1 d=00491230 alt=00491370
d 00491230: 6
R 00491370: P=6 sem=0 n=1 d=00491340 alt=00491480
d 00491340: 5
R 00491480: P=5 sem=0 n=1 d=00491450 alt=00491590
d 00491450: 4
R 00491590: P=4 sem=0 n=1 d=00491560 alt=00000000
d 00491560: 3
D 004919C0: tunnus=0 code=10 L=1 loc=0 icx=0 left=00491850 right=00000000 def=004916B0 (N)
R 004916B0: P=3 sem=0 n=2 d=00491670 alt=00491810
d 00491670: 2 11
R 00491810: P=2 sem=0 n=1 d=004917E0 alt=00000000
d 004917E0: 11
D 00491A60: tunnus=0 code=9 L=1 loc=0 icx=0 left=004919C0 right=00000000 def=00491930 (S)
R 00491930: P=1 sem=0 n=3 d=004918F0 alt=00000000
d 004918F0: 1 10 1
D 00491BF0: tunnus=1 code=4 L=1 loc=0 icx=0 left=00491A60 right=00491BA0 def=00000000 (b)
D 00491BA0: tunnus=1 code=5 L=1 loc=0 icx=0 left=00000000 right=00491B50 def=00000000 (c)
D 00491B50: tunnus=1 code=6 L=1 loc=0 icx=0 left=00000000 right=00491B00 def=00000000 (d)
D 00491B00: tunnus=1 code=7 L=1 loc=0 icx=0 left=00000000 right=00491AB0 def=00000000 (e)
D 00491AB0: tunnus=1 code=8 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (f)
D 00491C90: tunnus=1 code=2 L=1 loc=0 icx=0 left=00491BF0 right=00491C40 def=00000000 (n)
D 00491C40: tunnus=1 code=3 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00000000 (x)
Reduce Table
File G29.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 00492B80: P=4 n=1 NT=11 d=00492B50 nc=0 same=00000000 col=00000000 (A)
d 00492B50: 3
h 00492C00: P=5 n=1 NT=11 d=00492BD0 nc=0 same=00000000 col=00000000 (A)
d 00492BD0: 4
h 00492C80: P=6 n=1 NT=11 d=00492C50 nc=0 same=00000000 col=00000000 (A)
d 00492C50: 5
h 00492D00: P=7 n=1 NT=11 d=00492CD0 nc=0 same=00000000 col=00000000 (A)
d 00492CD0: 6
h 00492D80: P=8 n=1 NT=11 d=00492D50 nc=0 same=00000000 col=00000000 (A)
d 00492D50: 7
h 00492E00: P=9 n=1 NT=11 d=00492DD0 nc=0 same=00000000 col=00000000 (A)
d 00492DD0: 8
h 00492F10: P=3 n=2 NT=10 d=00492ED0 nc=0 same=00000000 col=00000000 (N)
d 00492ED0: 2 11
h 00492FA0: P=1 n=3 NT=9 d=00492F60 nc=0 same=00000000 col=00000000 (S)
d 00492F60: 1 10 1
h 00492E80: P=2 n=1 NT=10 d=00492E50 nc=0 same=00000000 col=00000000 (N)
d 00492E50: 11
Precedence Matrix
File G29.pm
Nr | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
1 | 0 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 0 | 1 | 2 |
2 | 0 | 0 | 2 | 2 | 2 | 2 | 2 | 2 | 0 | 0 | 1 |
3 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
4 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
10 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
11 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Semantics
File G29.sm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 0