17.04.2016 Views

sml

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.2 Sample Code 12<br />

by the iteration once again. This neatly captures the “zero or more times”<br />

interpretation of iteration of a regular expression.<br />

Important: the code given above contains a subtle error. Can<br />

you find it? If not, see chapter 27 for further discussion!<br />

This completes our brief overview of Standard ML. The remainder of<br />

these notes are structured into three parts. The first part is a detailed introduction<br />

to the core language, the language in which we write programs in<br />

ML. The second part is concerned with the module language, the means<br />

by which we structure large programs in ML. The third is about programming<br />

techniques, methods for building reliable and robust programs. I<br />

hope you enjoy it!<br />

1.2 Sample Code<br />

Here is the complete code for this chapter.<br />

REVISED 11.02.11 DRAFT VERSION 1.2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!