Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [712ada84eb96967ccda4008b9f7a089f158e4edc] by Douglas Creager

Revision 712ada84eb96967ccda4008b9f7a089f158e4edc, committed by Douglas Creager · November 20th, 2008 @ 08:51 PM

“let”s now allow pattern definitions and multiple-branch functions

This patch extends the parser and AST evaluator to allow the same kinds of definitions in a “let” statement as can appear at the top level of a script. Specifically, the left-hand side of a let binding can now be an arbitrary pattern, or a function defined using multiple branches. http://github.com/hst/hst/commit...

11 changed files

  • M cspm/qc-tests/HST/CSPM/Tests/Lambdas.hs
  • M cspm/qc-tests/HST/CSPM/Tests/Lets.hs
  • M cspm/src/HST/CSPM/Bind.hs
  • M cspm/src/HST/CSPM/Definitions.lhs
  • M cspm/src/HST/CSPM/Parser.hs
  • M cspm/src/HST/CSPM/Parser.ly
  • M cspm/src/HST/CSPM/Tool/Compile.lhs
  • M cspm/src/HST/CSPM/Tool/Evaluate.lhs
  • M cspm/src/HST/CSPM/Types.hs
  • M cspm/tests/expressions/test-lets.sh
  • M cspm/tests/run-tests.sh