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.

There was a problem

You must be a member of this account.

Changeset [af5c2c1ec7c7a6bbce67caaf911a25e5f8edf6da] by Douglas Creager

Revision af5c2c1ec7c7a6bbce67caaf911a25e5f8edf6da, committed by Douglas Creager · November 6th, 2008 @ 09:59 PM

Top-level script no longer implemented as an implicit “let” statement

Before, we implemented the top level of a CSPM script the same way as a “let” statement — as a list of Bindings. This isn't exactly right, though, since there are statements that can appear at the top level of a script that aren't valid in a “let” statement. In Scattergood's grammar, this difference is encoded in the Defn and SimpleDefn rules. This patch implements that separation. This will allow us to start implementing the other possible top-level statements, such as “channel”. http://github.com/dcreager/hst/c...

9 changed files

  • M cspm/HST.cabal
  • M cspm/src/HST/CSPM.hs
  • M cspm/src/HST/CSPM/Bind.hs
  • M cspm/src/HST/CSPM/Definitions.lhs
  • M cspm/src/HST/CSPM/Evaluate.hs
  • M cspm/src/HST/CSPM/Parser.hs
  • M cspm/src/HST/CSPM/Parser.ly
  • M cspm/src/HST/CSPM/Tool/Evaluate.lhs
  • M cspm/src/HST/CSPM/Types.hs