tools/PascalUnitSyntaxTree.hs
changeset 7442 9bb6abdb5675
parent 7429 fcf13e40d6b6
child 7513 39866eb9e4a6
--- a/tools/PascalUnitSyntaxTree.hs	Fri Jul 13 16:39:20 2012 +0400
+++ b/tools/PascalUnitSyntaxTree.hs	Thu Jul 26 21:56:47 2012 +0400
@@ -7,6 +7,7 @@
     Program Identifier Implementation Phrase
     | Unit Identifier Interface Implementation (Maybe Initialize) (Maybe Finalize)
     | System [TypeVarDeclaration]
+    | Redo [TypeVarDeclaration]
     deriving Show
 data Interface = Interface Uses TypesAndVars
     deriving Show
@@ -48,7 +49,7 @@
         | IfThenElse Expression Phrase (Maybe Phrase)
         | WhileCycle Expression Phrase
         | RepeatCycle Expression [Phrase]
-        | ForCycle Identifier Expression Expression Phrase
+        | ForCycle Identifier Expression Expression Phrase Bool -- The last Boolean indicates wether it's up or down counting
         | WithBlock Reference Phrase
         | Phrases [Phrase]
         | SwitchCase Expression [([InitExpression], Phrase)] (Maybe [Phrase])