From 151134e70af3a5f6aba70f3dc0731d996d547f49 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 14 Aug 2007 11:59:45 +0000 Subject: [PATCH] Fixed the conflict between the new AST documentation and the addition of the Rain ForEach constructor in the AST --- AST.hs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/AST.hs b/AST.hs index 1cfd02c..623df18 100644 --- a/AST.hs +++ b/AST.hs @@ -259,8 +259,15 @@ data OutputItem = | OutExpression Meta Expression deriving (Show, Eq, Typeable, Data) --- | The Name names the replicator index, the first expression is the base and the second expression is the FOR -data Replicator = For Meta Name Expression Expression +-- | A replicator. +data Replicator = + -- | The 'Name' names the replicator index, the first expression is the base and + -- the second expression is the count. + -- (In the future this will have additional constructors for stepped replicators.) + For Meta Name Expression Expression + -- | Rain addition. + -- The 'Name' names the loop variable and the expression is the list to iterate over + | ForEach Meta Name Expression deriving (Show, Eq, Typeable, Data) -- | A choice in an @IF@ process.