asdlGen Reference Manual
: Input Syntax
: View Syntax
Previous: Attributes
Next: Basic Syntax
3.4. View Syntax
lit-txt = see discussion below
view = "view" id "{" {view-entry} "}"
view-entity = id "." typ-id
| id "." con-id
| "module" id
view-prop = "<=" id
view-entry = view-entity view-prop lit-txt
| "{" {view-entity} "}"view-prop lit-txt
| view-prop"{" {view-entity lit-txt} "}"
| view-entity "<=""{" {id lit-txt} "}"
Views are an extensible system of annotating modules, types, and
constructors to aid in the conversion of ASDL declarations into a
particular output language. This discussion will only cover the basic view
syntax. Section
Views discusses the meaning of
the annotations in more detail.
asdlGen Reference Manual
: Input Syntax
: View Syntax
Previous: Attributes
Next: Basic Syntax