tools/pas2c/PascalUnitSyntaxTree.hs
branchwebgl
changeset 8020 00b1facf2805
parent 7969 7fcbbd46704a
child 10015 4feced261c68
--- a/tools/pas2c/PascalUnitSyntaxTree.hs	Sun Nov 11 15:14:18 2012 +0100
+++ b/tools/pas2c/PascalUnitSyntaxTree.hs	Sun Nov 11 16:44:40 2012 +0100
@@ -19,7 +19,7 @@
     deriving Show
 data TypeVarDeclaration = TypeDeclaration Identifier TypeDecl
     | VarDeclaration Bool Bool ([Identifier], TypeDecl) (Maybe InitExpression)
-    | FunctionDeclaration Identifier Bool TypeDecl [TypeVarDeclaration] (Maybe (TypesAndVars, Phrase))
+    | FunctionDeclaration Identifier Bool Bool TypeDecl [TypeVarDeclaration] (Maybe (TypesAndVars, Phrase))
     | OperatorDeclaration String Identifier Bool TypeDecl [TypeVarDeclaration] (Maybe (TypesAndVars, Phrase))
     deriving Show
 data TypeDecl = SimpleType Identifier
@@ -103,12 +103,12 @@
 data BaseType = BTUnknown
     | BTChar
     | BTString
-    | BTInt
+    | BTInt Bool -- second param indicates whether signed or not
     | BTBool
     | BTFloat
     | BTRecord String [(String, BaseType)]
     | BTArray Range BaseType BaseType
-    | BTFunction Bool Int BaseType
+    | BTFunction Bool [(Bool, BaseType)] BaseType -- (Bool, BaseType), Bool indiciates whether var or not
     | BTPointerTo BaseType
     | BTUnresolved String
     | BTSet BaseType