handouts/ho07.tex
changeset 600 e47db4abb695
parent 452 0b707b614dac
child 601 0e827b4c1b1c
equal deleted inserted replaced
599:0b512541f7ce 600:e47db4abb695
    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}