handouts/ho04.tex
changeset 716 df7d47a507f8
parent 671 83e38043ed78
child 720 ecbed0155f72
--- a/handouts/ho04.tex	Sun Mar 22 14:21:33 2020 +0000
+++ b/handouts/ho04.tex	Fri Apr 10 12:11:01 2020 +0100
@@ -10,8 +10,8 @@
 
 \section*{Handout 4 (Sulzmann \& Lu Algorithm)}
 
-So far our algorithm based on derivatives was only able to say
-yes or no depending on whether a string was matched by a regular
+So far our algorithm based on derivatives is only able to say
+yes or no depending on whether a string is matched by a regular
 expression or not. Often a more interesting question is to
 find out \emph{how} a regular expression matched a string?
 Answering this question will also help us with the problem we
@@ -86,9 +86,9 @@
 of two component values ($v_1$ and $v_2$).
 
 My implementation of regular expressions and values in Scala is
-shown below. I have in my implementation the convention that
+shown below. I use the convention that
 regular expressions are written entirely with upper-case
-letters, while values just start with a single upper-case
+letters, whereas values start with a single upper-case
 character and the rest are lower-case letters.
  
 {\small\lstinputlisting[language=Scala,numbers=none,linebackgroundcolor=