Anda di halaman 1dari 14

P

qr ts P q PP
Pt

q P s P P

Pt q q

q P P

Pq

PP q q P PP

(yyparse)
ex1.y

bison

ex1.tab.c

ex1.tab.h

ex1.l

flex

source

gcc

lex.yy.c
(yylex)

ex1

output

P P q
P qr

P s

P t s P

Pq PqP P P P


P P

qrq

P P q

q P
P
P P

P P q P

P P

P P P
P P P

q P

q P t P q P

P q q PP q
PPr PqP P

P rP s P r

s P r qr P

P
r

r rr

P r q

P s PP s P r

s r

P r P P

P r rr s
t q P qr

P P P
P s P

P P q q P

q P

P P r P
P P

qr

P q P P

P P s

P qq P P
s q P P P s qP

P q P P

P P s t


P P

P r P q P s

P q

P s q P

P P P

q q
P q
q

qP P q P P

P P

P P q

PPP qr s P q
qr P P q s

q q P

P qts r sP r P

P P P q P
P P P P

P P P P P P

P qr
q

Prq P qq qr s

P P

P q P

P t

Pq s P P P

P t qr qr P
s P P P

qr P P

qr

q P q q t

q s P P q P qr P

q q

q P P q P
q P Pq

P q q

P P t q PP
P P q qr q P

P P t q qr r

q P PP P P

t q P q q

qP P PPqPq t q
P P P t t P P t
Pq q P q P P P

P Pq q P P P P
P PP t q P qr qP

PqP Pr P P
q P P P P Pq

q P q

q PP q

P P P

q P q q P q P
P P q
P q P P
P P P t P P P
P r P P P

P q P P
qr

q P

qP

P P s P P r P
P P
P P

P P

s q

P P q q

q Pq P P
P rqr P P q

q q

q P P

qr

P P

P s Pq

q P P

q s

Pq s t

P s P P r

P q PP

Pqr s

P Ps
P P q

s q P

q P P q P t P

q t

q q

P q PqPq q P

P P P P Pq s P
P q
P

P q P P q

s P

q qr ts P P

r q q

P P

s P r P P

r s t P q P

PPq

P P

P P

P P q

P P

P P P

r r

P s P s P r s

P P

P P P qr qP s q s


P P qP P

P P P P q qr P

P P q P q P P

P q qr t PP

P P

P s P

P P P

q q P P P P P

q s rP P P P

q P P
P P P P qr ts P

Pq P r r s P r

q P

P s r
P P

q P q P

P q t t

q q qq P Pq P q P P

P q P P qr ts
q s

P P

P P q P P

q P P

qr P P

q Pq P

q P

P P

P qP q

P P r

P qr P P P P P

q P P q P P PP P
P P P P PP

P P P

P P

P P P P q

P P

PP P P

P P P s P

P P

P P Pr P

q q P P

q q P P

PP

P P q P P t P

P q P

q q t

q P q s qP