diff -r 591b9005157e -r 97bcf8efe4e0 main_templates3/re.scala --- a/main_templates3/re.scala Wed Nov 04 15:35:31 2020 +0000 +++ b/main_templates3/re.scala Fri Nov 06 01:07:26 2020 +0000 @@ -39,7 +39,7 @@ def ~ (r: String) = SEQ(s, r) } -// (5) Complete the function nullable according to +// (1) Complete the function nullable according to // the definition given in the coursework; this // function checks whether a regular expression // can match the empty string and Returns a boolean @@ -48,7 +48,7 @@ def nullable (r: Rexp) : Boolean = ??? -// (6) Complete the function der according to +// (2) Complete the function der according to // the definition given in the coursework; this // function calculates the derivative of a // regular expression w.r.t. a character. @@ -56,7 +56,7 @@ def der (c: Char, r: Rexp) : Rexp = ??? -// (7) Complete the simp function according to +// (3) Complete the simp function according to // the specification given in the coursework; this // function simplifies a regular expression from // the inside out, like you would simplify arithmetic @@ -66,7 +66,7 @@ def simp(r: Rexp) : Rexp = ??? -// (8) Complete the two functions below; the first +// (4) Complete the two functions below; the first // calculates the derivative w.r.t. a string; the second // is the regular expression matcher taking a regular // expression and a string and checks whether the @@ -77,7 +77,7 @@ def matcher(r: Rexp, s: String): Boolean = ??? -// (9) Complete the size function for regular +// (5) Complete the size function for regular // expressions according to the specification // given in the coursework.