tools/pas2c/PascalUnitSyntaxTree.hs
changeset 10120 b7f632c12784
parent 10113 b26c2772e754
child 10129 cd2a64a1f4aa
equal deleted inserted replaced
10119:7e05a397602f 10120:b7f632c12784
    24     | Sequence [Identifier]
    24     | Sequence [Identifier]
    25     | ArrayDecl (Maybe Range) TypeDecl
    25     | ArrayDecl (Maybe Range) TypeDecl
    26     | RecordType [TypeVarDeclaration] (Maybe [[TypeVarDeclaration]])
    26     | RecordType [TypeVarDeclaration] (Maybe [[TypeVarDeclaration]])
    27     | PointerTo TypeDecl
    27     | PointerTo TypeDecl
    28     | String
    28     | String
       
    29     | AString
    29     | Set TypeDecl
    30     | Set TypeDecl
    30     | FunctionType TypeDecl [TypeVarDeclaration]
    31     | FunctionType TypeDecl [TypeVarDeclaration]
    31     | DeriveType InitExpression
    32     | DeriveType InitExpression
    32     | VoidType
    33     | VoidType
    33     | VarParamType TypeDecl -- this is a hack
    34     | VarParamType TypeDecl -- this is a hack
    98     deriving Show
    99     deriving Show
    99 
   100 
   100 data BaseType = BTUnknown
   101 data BaseType = BTUnknown
   101     | BTChar
   102     | BTChar
   102     | BTString
   103     | BTString
       
   104     | BTAString
   103     | BTInt Bool -- second param indicates whether signed or not
   105     | BTInt Bool -- second param indicates whether signed or not
   104     | BTBool
   106     | BTBool
   105     | BTFloat
   107     | BTFloat
   106     | BTRecord String [(String, BaseType)]
   108     | BTRecord String [(String, BaseType)]
   107     | BTArray Range BaseType BaseType
   109     | BTArray Range BaseType BaseType