CONSTRUCTOR TABLES of the Grammar G24.grm
Parameters
File G24.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 G24.t
# a b 1 c T S A B S1 S2
Scanner Table
File G24.tt
# a b 1 c
Tree of the Alphabet V
File G24.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=00491910 def=00000000 (1)
D 004916B0: tunnus=0 code=8 L=1 loc=0 icx=0 left=00000000 right=00491330 def=00492D20 (A)
R 00492D20: P=8 sem=0 n=2 d=00492CE0 alt=00492F90
d 00492CE0: 5 9
R 00492F90: P=6 sem=0 n=1 d=00492F60 alt=00000000
d 00492F60: 4
D 00491330: tunnus=0 code=9 L=1 loc=0 icx=0 left=00000000 right=00000000 def=00492E80 (B)
R 00492E80: P=7 sem=0 n=1 d=00492E50 alt=00000000
d 00492E50: 4
D 00491870: tunnus=0 code=7 L=1 loc=0 icx=0 left=004916B0 right=00492C90 def=004910E0 (S)
R 004910E0: P=5 sem=0 n=2 d=00492BE0 alt=004912A0
d 00492BE0: 10 2
R 004912A0: P=4 sem=0 n=2 d=00492AE0 alt=00491460
d 00492AE0: 11 3
R 00491460: P=3 sem=0 n=3 d=00491420 alt=00491620
d 00491420: 3 8 3
R 00491620: P=2 sem=0 n=3 d=004915E0 alt=00000000
d 004915E0: 2 8 2
D 00492C90: tunnus=0 code=10 L=2 loc=0 icx=0 left=00000000 right=00492B90 def=00492C50 (S1)
R 00492C50: P=9 sem=0 n=2 d=00492C10 alt=00000000
d 00492C10: 3 9
D 00492B90: tunnus=0 code=11 L=2 loc=0 icx=0 left=00000000 right=00000000 def=00492B50 (S2)
R 00492B50: P=10 sem=0 n=2 d=00492B10 alt=00000000
d 00492B10: 2 9
D 00491910: tunnus=0 code=6 L=1 loc=0 icx=0 left=00491870 right=00000000 def=004917E0 (T)
R 004917E0: P=1 sem=0 n=3 d=004917A0 alt=00000000
d 004917A0: 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 G24.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 00492730: P=6 n=1 NT=8 d=00492700 nc=1 same=004926B0 col=00000000 (A)
d 00492700: 4
h 004926B0: P=7 n=1 NT=9 d=00492680 nc=1 same=00000000 col=00000000 (B)
d 00492680: 4
h 00492A90: P=1 n=3 NT=6 d=00492A50 nc=0 same=00000000 col=00000000 (T)
d 00492A50: 1 7 1
h 00492850: P=2 n=3 NT=7 d=00492810 nc=0 same=00000000 col=004928E0 (S)
d 00492810: 2 8 2
h 004928E0: P=3 n=3 NT=7 d=004928A0 nc=0 same=00000000 col=00492970 (S)
d 004928A0: 3 8 3
h 00492970: P=4 n=2 NT=7 d=00492930 nc=0 same=00000000 col=00492A00 (S)
d 00492930: 11 3
h 00492A00: P=5 n=2 NT=7 d=004929C0 nc=0 same=00000000 col=00000000 (S)
d 004929C0: 10 2
h 00492630: P=9 n=2 NT=10 d=004925F0 nc=0 same=00000000 col=00000000 (S1)
d 004925F0: 3 9
h 004925A0: P=10 n=2 NT=11 d=00492560 nc=0 same=00000000 col=00000000 (S2)
d 00492560: 2 9
h 004927C0: P=8 n=2 NT=8 d=00492780 nc=0 same=00000000 col=00000000 (A)
d 00492780: 5 9
Precedence Matrix
File G24.pm
Nr | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
1 | 0 | 2 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 2 |
2 | 4 | 0 | 0 | 2 | 2 | 0 | 0 | 1 | 1 | 0 | 0 |
3 | 4 | 0 | 0 | 2 | 2 | 0 | 0 | 1 | 1 | 0 | 0 |
4 | 0 | 4 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9 | 0 | 4 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
10 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
11 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Left Context
File G24.lc
Nr | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8 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