coursework/cw02.tex
changeset 179 d575895689b5
parent 178 d36363d648e3
child 180 50e8dcd95ae3
equal deleted inserted replaced
178:d36363d648e3 179:d575895689b5
    19   morekeywords={abstract,case,catch,class,def,%
    19   morekeywords={abstract,case,catch,class,def,%
    20     do,else,extends,false,final,finally,%
    20     do,else,extends,false,final,finally,%
    21     for,if,implicit,import,match,mixin,%
    21     for,if,implicit,import,match,mixin,%
    22     new,null,object,override,package,%
    22     new,null,object,override,package,%
    23     private,protected,requires,return,sealed,%
    23     private,protected,requires,return,sealed,%
    24     super,this,throw,trait,true,try,%
    24     super,this,throw,trait,true,try,
    25     type,val,var,while,with,yield},
    25     type,val,var,while,with,yield},
    26   otherkeywords={=>,<-,<\%,<:,>:,\#,@},
    26   otherkeywords={=>,<-,<\%,<:,>:,\#,@},
    27   sensitive=true,
    27   sensitive=true,
    28   morecomment=[l]{//},
    28   morecomment=[l]{//},
    29   morecomment=[n]{/*}{*/},
    29   morecomment=[n]{/*}{*/},
    89 \begin{center}
    89 \begin{center}
    90 \texttt{+}, \texttt{-}, \texttt{*}, \texttt{\%}, \texttt{==}, \texttt{!=}, \texttt{>}, \texttt{<}, \texttt{:=}
    90 \texttt{+}, \texttt{-}, \texttt{*}, \texttt{\%}, \texttt{==}, \texttt{!=}, \texttt{>}, \texttt{<}, \texttt{:=}
    91 \end{center} 
    91 \end{center} 
    92 
    92 
    93 \noindent
    93 \noindent
    94 (3) Strings are enclosed into \texttt{"\ldots"}, (4) you have parentheses \texttt{(}, \texttt{\{}, \texttt{)}, and \texttt{\}},
    94 (3) Strings are enclosed in \texttt{"\ldots"}, (4) you have parentheses \texttt{(}, \texttt{\{}, \texttt{)}, and \texttt{\}},
    95 (5) there are semicolons \texttt{;}, (6) whitespaces are either \texttt{" "} or \texttt{$\backslash$n},
    95 (5) there are semicolons \texttt{;}, (6) whitespaces are either \texttt{" "} or \texttt{$\backslash$n},
    96 (7) comments either start with $\backslash\,\backslash$ and run to the end of the corresponding line 
    96 (7) comments either start with $\backslash\,\backslash$ and run to the end of the corresponding line 
    97 (\texttt{$\backslash$n}), comments can also been given by looking for $\slash\texttt{*}$ as the
    97 (\texttt{$\backslash$n}), comments can also been given by looking for $\slash\texttt{*}$ as the
    98 beginning marker and $\texttt{*}\slash{}$\smallskip as the end marker.
    98 beginning marker and $\texttt{*}\slash{}$\smallskip as the end marker.
    99 
    99