Sample Programs
As the course progresses links will be provided to take you to sample
programs from the text and from class.
- Haskell Programs from the text:
- Haskell programs from class.
- HW5FSynF.hs
- HW5Model.hs
- HW5MCWPL.hs
- P2.hs is a variant of P.hs that builds parse trees using
categories as interior node labels rather than strings.
- TreeToSyntax.hs is a file whose main program
reads in a sentence (from line input) and prints out the corresponding element of type Sent
and then evaluates it in the model in Model.hs.
- IO.hs Sample code for doing simple I/O in Haskell