06.11.2014 Views

Kapitel 4

Kapitel 4

Kapitel 4

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Berechnung von nullable(X)<br />

Compiler<br />

<strong>Kapitel</strong> 4<br />

Syntaktische Analyse<br />

for all symbols X do<br />

nullable(X) := false;<br />

repeat<br />

change := false;<br />

true if k=0 ! <br />

for every production X → s 1 … s k<br />

do<br />

if nullable(X)=false and<br />

s 1 … s k are all nullable then<br />

{nullable(X) := true;<br />

change := true;}<br />

until change = false<br />

Autor:<br />

Aho et al.<br />

Z → d Y→ ε X → Y <br />

Z → XYZ Y→ c X → a

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!