hws/hw07.tex
changeset 393 494b44b439bf
parent 359 db106e5b7c4d
child 681 7b7736bea3ca
equal deleted inserted replaced
392:2d0a59127694 393:494b44b439bf
    65 $S \rightarrow \texttt{if0} \cdot E \cdot \texttt{then} \cdot S$\\
    65 $S \rightarrow \texttt{if0} \cdot E \cdot \texttt{then} \cdot S$\\
    66 $S \rightarrow \texttt{print} \cdot S$\\
    66 $S \rightarrow \texttt{print} \cdot S$\\
    67 $S \rightarrow \texttt{begin} \cdot B\cdot \texttt{end}$\\
    67 $S \rightarrow \texttt{begin} \cdot B\cdot \texttt{end}$\\
    68 $B \rightarrow S\cdot \texttt{;}$\\
    68 $B \rightarrow S\cdot \texttt{;}$\\
    69 $B \rightarrow S\cdot \texttt{;} \cdot B$\\
    69 $B \rightarrow S\cdot \texttt{;} \cdot B$\\
    70 $E \rightarrow num$
    70 $S \rightarrow num$\\
       
    71 $E \rightarrow num$\\
       
    72 $B \rightarrow num$
    71 \end{tabular}
    73 \end{tabular}
    72 \end{center}
    74 \end{center}
    73 
    75 
    74 where $S$ is the start symbol and $S$, $E$ and $B$ are
    76 where $S$ is the start symbol and $S$, $E$ and $B$ are
    75 non-terminals.
    77 non-terminals.