asdlGen Reference Manual
: Views
Previous: De-constructing Data Structures
Next: Interpretation of View Entry Values
5. Views
Views provide a general mechanism to customize the output of
asdlGen. Views allow description writers to annotate modules,
constructors, and types with directives or properties that are interpreted
by asdlGen. Currently asdlGen properties that allow for the
- Inclusion of arbitrary user code in the resulting output
- Automatic coercion of specific types into more efficient user
defined representations
- Addition of extra user defined attributes and initialization code
- Specialized user defined routines to read and write data structures to
disk
- Control over how the names of types, constructors, and modules names
are mapped into the output language to resolve style issues and name space
conflicts.
- Control over the tag values
- Addition of documentation that describes the meaning of types
constructors and modules
- 5.4.1. Examples
asdlGen Reference Manual
: Views
Previous: De-constructing Data Structures
Next: Interpretation of View Entry Values