tools/PascalUnitSyntaxTree.hs
changeset 7006 6af78154dc62
parent 6967 1224c6fb36c3
child 7019 333afe233886
--- a/tools/PascalUnitSyntaxTree.hs	Sun Apr 01 15:23:34 2012 +0200
+++ b/tools/PascalUnitSyntaxTree.hs	Wed May 02 23:53:45 2012 +0200
@@ -32,10 +32,10 @@
     | FunctionType TypeDecl [TypeVarDeclaration]
     | DeriveType InitExpression 
     | VoidType
-    | UnknownType
     deriving Show
 data Range = Range Identifier
            | RangeFromTo InitExpression InitExpression
+           | RangeInfinite
     deriving Show
 data Initialize = Initialize String
     deriving Show
@@ -52,6 +52,7 @@
         | Phrases [Phrase]
         | SwitchCase Expression [([InitExpression], Phrase)] (Maybe [Phrase])
         | Assignment Reference Expression
+        | BuiltInFunctionCall [Expression] Reference
         | NOP
     deriving Show
 data Expression = Expression String
@@ -103,8 +104,9 @@
     | BTBool
     | BTFloat
     | BTRecord [(String, BaseType)]
-    | BTArray BaseType BaseType
+    | BTArray Range BaseType BaseType
     | BTFunction BaseType
+    | BTFunctionReturn String BaseType
     | BTPointerTo BaseType
     | BTUnresolved String
     | BTSet BaseType