equal
deleted
inserted
replaced
1 \documentclass{article} |
1 \documentclass{article} |
2 \usepackage{charter} |
2 \usepackage{../style} |
3 \usepackage{hyperref} |
3 \usepackage{../graphics} |
4 \usepackage{amssymb} |
|
5 \usepackage{amsmath} |
|
6 \usepackage{tikz} |
|
7 \usetikzlibrary{automata} |
|
8 |
|
9 \newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions |
|
10 |
4 |
11 \begin{document} |
5 \begin{document} |
12 |
6 |
13 \section*{Homework 8} |
7 \section*{Homework 8} |
14 |
8 |
15 \begin{enumerate} |
9 \begin{enumerate} |
16 \item Write a program in the WHILE-language that calculates the factorial function. |
10 \item Write a program in the WHILE-language that calculates |
|
11 the factorial function. |
17 |
12 |
18 \item What optimisations could a compiler perform when compiling a WHILE-program? |
13 \item What optimisations could a compiler perform when |
|
14 compiling a WHILE-program? |
19 |
15 |
20 \item What is the main difference between the Java assembler (as processed by Jasmin) and |
16 \item What is the main difference between the Java assembler |
21 Java Byte Code? |
17 (as processed by Jasmin) and Java Byte Code? |
22 |
18 |
23 \item Parser combinators can directly be given a string as input, without the need of a lexer. What are |
19 \item Parser combinators can directly be given a string as |
24 the advantages to first lex a string and then feed a sequence of tokens as input to the parser? |
20 input, without the need of a lexer. What are the |
|
21 advantages to first lex a string and then feed a |
|
22 sequence of tokens as input to the parser? |
|
23 |
25 \end{enumerate} |
24 \end{enumerate} |
26 |
25 |
27 \end{document} |
26 \end{document} |
28 |
27 |
29 %%% Local Variables: |
28 %%% Local Variables: |