cws/cw03.tex
changeset 992 d09d73808ca2
parent 991 b4b97704815b
equal deleted inserted replaced
991:b4b97704815b 992:d09d73808ca2
    23 simpler. However, make sure you understand the code involved in the
    23 simpler. However, make sure you understand the code involved in the
    24 ``hack'' because if you just do ``mix-and-match'' you will receive
    24 ``hack'' because if you just do ``mix-and-match'' you will receive
    25 strange error messages.  The main function that will be tested is called
    25 strange error messages.  The main function that will be tested is called
    26 \texttt{eval} and \texttt{Stmts.parse\_all}. The latter expects a list
    26 \texttt{eval} and \texttt{Stmts.parse\_all}. The latter expects a list
    27 of tokens as input and generates an AST. The former expects an AST and
    27 of tokens as input and generates an AST. The former expects an AST and
    28 ``runs'' the program. The marks will be distributed such that 6 marks
    28 ``runs'' the program. The marks will be distributed such that 9 marks
    29 are given for the correct grammar (and parsers); 4 marks for the correct
    29 are given for the correct grammar (and parsers); 6 marks for the correct
    30 \texttt{eval} function.  You should use the lexer from CW2 for the
    30 \texttt{eval} function.  You should use the lexer from CW2 for the
    31 parser - you potentially need to make modifications to the regular 
    31 parser - you potentially need to make modifications to the regular 
    32 expressions for CW3.  
    32 expressions for CW3.  
    33 
    33 
    34 \subsection*{Disclaimer\alert}
    34 \subsection*{Disclaimer\alert}