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.

Der resultierende Parser II<br />

Compiler<br />

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

Syntaktische Analyse<br />

public static void ExprCont() throws java.io.IOException<br />

{switch(tok) {<br />

case ')': case (char) (-1):/* eof */<br />

/* ExprCont --> epsilon */ break;<br />

case '+': case '*': case '/': case '-':<br />

/* ExprCont --> (+|*|/|-) Expr */<br />

advance(); Expr();<br />

break;<br />

default: eat(')'); /* generate error message */<br />

}<br />

}<br />

Autor:<br />

Aho et al.<br />

Remember: Follow(EC) = { ) }, nullable(EC) !!

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

Saved successfully!

Ooh no, something went wrong!