diff --git a/lectures.md b/lectures.md index 13f26c6..ba05d31 100644 --- a/lectures.md +++ b/lectures.md @@ -25,10 +25,10 @@ The lectures will be recorded and available on [CANVAS](https://canvas.ucsd.edu/ | *11/2* | **First Midterm** | | | | | *11/7* | Iteration and State | [html-1][09-list] [html-2][10-state] | [pdf][10-pdf] | [code][code-11-7] | | *11/14* | Parser Combinators | [html][11-parsers] | | [code][code-11-14] | +| *11/16* | Property-based Testing | [html][14-testing] | | [code][code-11-16] | (\cs -> [([], cs)]) + +failP ---> (\cs -> []) + + + +fail + +-} + +-- do +-- x <- aP +-- xs <- manyP aP +-- return (x:xs) + + +intP :: Parser Int +intP = do + cs <- manyP digitCharP + return (read cs)