handouts/ho07.tex
changeset 600 d488a3e7b0ec
parent 452 b93f4d2aeee1
child 601 208b0f67a3d0
equal deleted inserted replaced
599:33c4b580092b 600:d488a3e7b0ec
    59 use the JVM instructions \code{iadd}, \code{isub},
    59 use the JVM instructions \code{iadd}, \code{isub},
    60 \code{imul}, \code{idiv} and so on. The \code{i} stands for
    60 \code{imul}, \code{idiv} and so on. The \code{i} stands for
    61 integer instructions in the JVM (alternatives are \code{d} for
    61 integer instructions in the JVM (alternatives are \code{d} for
    62 doubles, \code{l} for longs and \code{f} for floats).
    62 doubles, \code{l} for longs and \code{f} for floats).
    63 
    63 
    64 Recall our grammar for arithmetic expressions ($E$ is the
    64 Recall our grammar for arithmetic expressions (\meta{E} is the
    65 starting symbol):
    65 starting symbol):
    66 
    66 
    67 
    67 
    68 \begin{plstx}[rhs style=, margin=3cm]
    68 \begin{plstx}[rhs style=, margin=3cm]
    69 : \meta{E} ::= \meta{T} $+$ \meta{E}
    69 : \meta{E} ::= \meta{T} $+$ \meta{E}