Start of CONSTRUCTOR for the Grammar G5.grm Sat Apr 03 15:54:32 2004

Terminal alphabet

# 1 = #
# 2 = a
# 3 = b
# 4 = c


Nonterminal alphabet

# 5 = `T'
# 6 = `S'
# 7 = `U'
# 8 = `V'


Productions

P 1: `T' -> # `S' #
P 2: `S' -> `U' `V'
P 3: `U' -> a b
P 4: `V' -> c `V'
P 5: `V' -> c

Leftmost-set

Symbol#abcTSUV
5.T*0000000
6.S0*0000*0
7.U0*000000
8.V000*0000

Rightmost-set

Symbol#abcTSUV
5.T*0000000
6.S000*000*
7.U00*00000
8.V000*000*

Leftmost & rightmost sets

`T' leftmost set: `#'
`T' rightmost set: #

`S' leftmost set: `a' , `U'
`S' rightmost set: c , V

`U' leftmost set: `a'
`U' rightmost set: b

`V' leftmost set: `c'
`V' rightmost set: c , V


Precedence matrix

Symbol#abcTSUV
1.#0<000=<0
2.a00=00000
3.b000>000>
4.c>00<000=
5.T00000000
6.S=0000000
7.U000<000=
8.V>0000000

The relationships of symbol #1 #:
<• a=• `S'<• `U'

The relationships of symbol #2 a:
=• b

The relationships of symbol #3 b:
•> c•> `V'

The relationships of symbol #4 c:
•> #<• c=• `V'

The relationships of symbol #5 `T':

The relationships of symbol #6 `S':
=• #

The relationships of symbol #7 `U':
<• c=• `V'

The relationships of symbol #8 `V':
•> #


Grammar G5.grm is a precedence grammar

Grammar G5.grm is invertible


Semantics

Semantics file is G5.sem
#=1
a=2
b=3
c=4
P1=5 $P 1: `T' -> # `S' #
P2=6 $P 2: `S' -> `U' `V'
P3=7 $P 3: `U' -> a b
P4=8 $P 4: `V' -> c `V'
P5=9 $P 5: `V' -> c

Result tables


FileSize
G5.prm28
G5.pm81
G5.t180
G5.tt100
G5.ht1224
G5.sm44
G5.v396

Look at result tables

Finish of CONSTRUCTOR Sat Apr 03 15:54:32 2004