Start of CONSTRUCTOR for the Grammar G1.grm Sat Apr 03 15:39:57 2004

Terminal alphabet

# 1 = #
# 2 = a
# 3 = b


Nonterminal alphabet

# 4 = `S'
# 5 = `A'
# 6 = `B'
# 7 = `C'


Productions

P 1: `S' -> # `A' #
P 2: `A' -> `B' `C'
P 3: `B' -> a
P 4: `B' -> `B' a
P 5: `C' -> b

Leftmost-set

Symbol#abSABC
4.S*000000
5.A0*000*0
6.B0*000*0
7.C00*0000

Rightmost-set

Symbol#abSABC
4.S*000000
5.A00*000*
6.B0*00000
7.C00*0000

Leftmost & rightmost sets

`S' leftmost set: `#'
`S' rightmost set: #

`A' leftmost set: `a' , `B'
`A' rightmost set: b , C

`B' leftmost set: `a' , `B'
`B' rightmost set: a

`C' leftmost set: `b'
`C' rightmost set: b


Precedence matrix

Symbol#abSABC
1.#0<00=<0
2.a0>>000>
3.b>000000
4.S0000000
5.A=000000
6.B0=<000=
7.C>000000

The relationships of symbol #1 #:
<• a=• `A'<• `B'

The relationships of symbol #2 a:
•> a•> b•> `C'

The relationships of symbol #3 b:
•> #

The relationships of symbol #4 `S':

The relationships of symbol #5 `A':
=• #

The relationships of symbol #6 `B':
=• a<• b=• `C'

The relationships of symbol #7 `C':
•> #


Grammar G1.grm is a precedence grammar

Grammar G1.grm is invertible


Semantics

Semantics file is G1.sem
#=1
a=2
b=3
P1=4 $P 1: `S' -> # `A' #
P2=5 $P 2: `A' -> `B' `C'
P3=6 $P 3: `B' -> a
P4=7 $P 4: `B' -> `B' a
P5=8 $P 5: `C' -> b

Result tables


FileSize
G1.prm28
G1.pm64
G1.t160
G1.tt80
G1.ht1220
G1.sm40
G1.v360

Look at result tables

Finish of CONSTRUCTOR Sat Apr 03 15:39:57 2004