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
- Read Sections 1 to 3.2 of
Regular-expression derivatives reexamined,
by Scott Owens, John Reppy, and Aaron Turon.
- Download regexps.ml and save it in a new directory (e.g., a2).
- Complete the exercises in Part I, as directed in the file (all exercises in Part II are EC).
- Submit regexps.ml via Blackboard on or before 1:30pm on the due date.
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!