Portability | portable |
---|---|
Stability | provisional |
Maintainer | Antoine Latter <aslatter@gmail.com> |
Defines types inteneded to be equivalent to the schema used by the XCB project in their XML protocol description.
- data XHeader = XHeader {}
- data XDecl
- data StructElem
- type Name = String
- type XReply = [StructElem]
- type Ref = String
- data Type
- = UnQualType Name
- | QualType Name Name
- type MaskName = Name
- type ListName = Name
- data ExInfo = ExInfo Name Name Version
- type Version = (String, String)
- data XidUnionElem = XidUnionElem Type
- data EnumElem = EnumElem Name (Maybe Expression)
- data Expression
- = Value Int
- | Bit Int
- | FieldRef String
- | Op Binop Expression Expression
- data Binop
Documentation
This is what a single XML file maps to. It contains some meta-data then declarations.
XHeader | |
|
The different types of declarations which can be made in one of the XML files.
data StructElem Source
type XReply = [StructElem]Source
Types may include a reference to the containing module.
data Expression Source
Declarations may contain expressions from this small language
Value Int | A literal value |
Bit Int | A log-base-2 literal value |
FieldRef String | A reference to a field in the same declaration |
Op Binop Expression Expression | A binary opeation |