tools/PascalUnitSyntaxTree.hs
changeset 6512 0df7f6697939
parent 6489 e1f0058cfedd
child 6618 2d3232069c4b
equal deleted inserted replaced
6511:bc6e67598dde 6512:0df7f6697939
     3 import Data.Traversable
     3 import Data.Traversable
     4 
     4 
     5 data PascalUnit =
     5 data PascalUnit =
     6     Program Identifier Implementation Phrase
     6     Program Identifier Implementation Phrase
     7     | Unit Identifier Interface Implementation (Maybe Initialize) (Maybe Finalize)
     7     | Unit Identifier Interface Implementation (Maybe Initialize) (Maybe Finalize)
     8     | System
     8     | System [TypeVarDeclaration]
     9     deriving Show
     9     deriving Show
    10 data Interface = Interface Uses TypesAndVars
    10 data Interface = Interface Uses TypesAndVars
    11     deriving Show
    11     deriving Show
    12 data Implementation = Implementation Uses TypesAndVars
    12 data Implementation = Implementation Uses TypesAndVars
    13     deriving Show
    13     deriving Show