A2: Regexps Reexamined OCaml logo

Due: Tuesday, 2/7 at 11:59pm

UPDATE 2/07/2017 at 3:21PM: Due date is now 11:59pm tonight, as listed in Blackboard

UPDATE 1/30/2017 at 1:47PM: Small fix to regexps.ml

Please re-download (being sure to save your work so far!) or simply remove from the definition of function string_interp (line 193) the entire second argument, including parens: (interp : ...).

The correct string_interp should read:

let string_interp (r : char regexp)
    : string -> bool =
  fun s -> interp r (BatString.to_list s)

Complete regexps.ml

To Build regexps.ml

Simply do:

ocamlbuild -pkg batteries regexps.byte

Finally:

if the instructions in regexps.ml are unclear ask for clarification on Piazza!